title: how can get key value array from "form-data" in asp.net core by [FromForm]
body: <p>I have a form that has key value array like this:</p>
  <p><a href="https://i.stack.imgur.com/G7haN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G7haN.png" alt="enter image description here" /></a></p>
  <p>In this array, keys has not started from zero so when I defined Request model for get this array as you can see I can't get any value from this array.</p>
  <p>Notice that when I try to send this array from zero key that's work correctly:</p>
  <p><a href="https://i.stack.imgur.com/8BqrJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8BqrJ.png" alt="enter image description here" /></a></p>
  <p>But I need to send this array with that approach because the keys make sense.</p>
  <p>Request Model Class:</p>
  <pre><code>public class Correction
  {
      [Required]
      public int theory_exam_id { get; set; }
  
      [Required]
      public int[] answers { get; set; }
  }
  </code></pre>
  <p>Controller Method:</p>
  <pre><code>[HttpPost(&quot;correction&quot;)]
  public async Task&lt;ActionResult&lt;TheoryExam&gt;&gt; CorrectionTheoryExam([FromForm] Correction correction)
  {
      return Ok(correction);
  }
  
  </code></pre>