FormData on multiple Fields

Is there a way to make getting Form data automatically change fields with the same name and index in brackets into an array?

like that:

          <li class="item-content item-input item-input-outline">
            <div class="item-inner">
              <div class="item-title item-floating-label">Option ${index+1}</div>
              <div class="item-input-wrap">
                <input type="text" name="option[${index}]" placeholder="${option.title}" value="${option.title}" />
                <span class="input-clear-button"></span>
              </div>
            </div>
            <div class="item-media">
              <a href="#" data-index="${index}" @click="${removeOption}">
                X
              </a>
            </div>
          </li>