title: How do you pass an array of JSON objects to an MVC controller?
body: <p>I'm making an ajax call to a controller, and I can pass a single item to the controller, but not a list of items. Basically, this works:</p>
  
  <pre><code>$.ajax(
  {
      url: "Inventory/Update",
      data: { ItemID: "1234", Quantity: 7 },
      datatype: "json"
  });
  
  
  public void Update(Item item)
  {
  
  }
  </code></pre>
  
  <p>The item is populated in the controller with values of 1234 and 7. But when I try this:</p>
  
  <pre><code>$.ajax(
  {
      url: "Inventory/Update",
      data: [{ ItemID: "1234", Quantity: 7 }],
      datatype: "json"
  });
  
  
  public void Update(List&lt;Item&gt; items)
  {
  
  }
  </code></pre>
  
  <p>items is null.</p>
  
  <p>I've tried setting traditional to true, as has been suggested in other posts, but that did not make a difference.</p>
  
  <p>How can I pass this array of objects to my MVC controller?</p>