title: pass a list of objects via ajax to a MVC controller always sends null
body: <p>I am probably missing something very simple.  I have been working on this for a day and an half now and can not get it to work.  I am looping through a table and creating a list of objects to send back to my controller.  For some reason I am always receiving a null value in my controller.  Here is the java script.</p>
  
  <pre><code> var items = [];
          $('#grid tr').each(function () {
              var item = {};
              item.numReceived = $(this).find("input[id*='NumReceived']").val();
              /*skip the header row*/
              if (item.numReceived !== null) {
                  item.transactionID = $(this).find("input[id*='item_TransactionID']").val();
                  items.push(item);
              }
          });
  
          $.ajax({
              url: './ReceivePOLines',
              type: "Post",
              cache: false,
              data: JSON.stringify(items),
              dataType: "json",
              contentType: 'application/json; charset=utf-8',
              success: function () {
                  window.location.replace("../Home/Index");
              },
              error: function (request) {
                  alert("error");
              }
          });
  </code></pre>
  
  <p>here is the method signature in the controller</p>
  
  <pre><code> [HttpPost]
    public void ReceivePOLines(List&lt;RecievedTransactions&gt; inTransactions)
  </code></pre>
  
  <p>And here is the class ReceivedTransactions</p>
  
  <pre><code>  public class RecievedTransactions{
        public int numReceived { get; set; }
        public int transactionID { get; set; }
     }
  </code></pre>
  
  <p>Here are the results from Fiddler showing what was passed</p>
  
  <p>[{},{"numReceived":"10000","transactionID":"10661768"},{"numReceived":"10000","transactionID":"10661769"},{"numReceived":"2000","transactionID":"10661770"},{"numReceived":"2500","transactionID":"10661771"},{"numReceived":"2500","transactionID":"10661772"},{"numReceived":"2000","transactionID":"10661773"},{"numReceived":"10000","transactionID":"10661774"}]</p>
  
  <p>Any and all help appreciated.
  cheers
  bob</p>