title: MVC not parsing IEnumerable values in request
body: <p>MVC 4 seems to be having trouble parsing the object I am sending it.</p>
  
  <p>Using jQuery's ajax function, I send the data using POST request. I receive it in the Request object, it appears like this in the Request.Form:</p>
  
  <pre><code>{Name=Test&amp;Groups%5b0%5d%5bName%5d=GroupName1&amp;Groups%5b0%5d%5bCount%5d=123Groups%5b1%5d%5bName%5d=GroupName2&amp;Groups%5b1%5d%5bCount%5d=123ID=bee4c411-f06c-43c6-815f-8002df4f2779}
  
  //formatted for readability
  Name=Test &amp;
  Groups[0][Name]=GroupName1 &amp;
  Groups[0][Count]=123 &amp;
  Groups[1][Name]=GroupName2 &amp;
  Groups[1][Count]=123 &amp;
  ID=bee4c411-f06c-43c6-815f-8002df4f2779
  </code></pre>
  
  <p>The <code>Name</code> and <code>ID</code> values are parsed just fine, but the Groups array is not... I do get an <code>IEnumerable</code>, and it contains the correct number of groups but the values within are <code>null</code>.</p>
  
  <p>I've read <a href="https://msdn.microsoft.com/en-us/magazine/hh781022.aspx" rel="nofollow">this</a> and <a href="http://www.hanselman.com/blog/ASPNETWireFormatForModelBindingToArraysListsCollectionsDictionaries.aspx" rel="nofollow">this</a> and I can't seem to find what I did wrong...</p>
  
  <p><strong>What am I missing?</strong></p>
  
  <p>The MVC <code>Action</code> looks like this:</p>
  
  <pre><code>public ActionResult UpdateGroups(GroupsListRequest req)
  {
      [...] //handle the request
  }
  </code></pre>
  
  <p>and <code>GroupsListRequest</code> looks like this:</p>
  
  <pre><code>public class GroupsListRequest
  {
      public string Name { get; set; }
      public string ID { get; set; }
      public IEnumerable&lt;GroupRequest&gt; Groups { get; set; }
  }
  </code></pre>
  
  <p>Finally, <code>GroupsRequest</code> looks like this:</p>
  
  <pre><code>public class GroupsRequest
  {
      public string Name { get; set; }
      public int Count { get; set; }
  }
  </code></pre>