HonoH
Hono15mo ago
anand248

Nested form objects POST

My form has nested objects and array of objects. I name them as below -

      <form method="post">

          <div class="form-control mb-4">
            <label for="invoiceNumber" class="label">
              <span class="label-text">Invoice Number1</span>
            </label>
            <input id="invoiceHeader.invoiceNumber" name="invoiceHeader.invoiceNumber" ... />
          </div>

How can I read them back as json at server side? It all works fine if body has flat structure. Am I missing any middleware
Was this page helpful?