title: combine the values of those hidden inputs into a json formatted string in a separate hidden input
body: <p>I want to combine the values of those hidden inputs into a json formatted string in a separate hidden input. How do I achieve this?</p>
  
  <pre><code>&lt;c:forEach var="perForm" items="${importedPersonForms}" varStatus="count"&gt;
      &lt;input type="hidden" name="importedPersonForms[${count.count - 1}].firstname" value="${perForm.firstname}"/&gt;
      &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].lastname" value="${perForm.lastname}"/&gt;
      &lt;c:forEach var="position" items="${perForm.positions}"&gt;
          &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].positions" value="${position}"/&gt;
      &lt;/c:forEach&gt;
      &lt;c:forEach var="organization" items="${perForm.organizations}"&gt;
          &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].organizations" value="${organization}"/&gt;
      &lt;/c:forEach&gt;
      &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].addressList[0].countryCode" value="${perForm.addressList[0].countryCode}"/&gt;
      &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].addressList[0].number" value="${perForm.addressList[0].number}"/&gt;
      &lt;input type="hidden" name="importedPersonForms[${count.count - 1 }].addressList[0].fixedLine" value="${perForm.addressList[0].fixedLine}"/&gt;
  &lt;/c:forEach&gt;
  </code></pre>