title: Sending LIst<t> via ajax to complex model
body: <p>I know I've done this before but I can't seem to get this to work.</p>
  
  <p>I have the following JavaScript;</p>
  
  <pre><code>        $("#btnTestVouchers").click(function () {
              var postData = {
                  "workplaceGiverId": $(".wpgDropdownList").val(),
                  "fromMemberId": $(".wpgFromMemberDropdownList").val(),
                  "toMemberId": $(".wpgToMemberDropdownList").val(),
                  "voucherExpiryDate": $("#expiryDatePicker").val(),
                  "recipients": JSON.stringify("[{'firstname':'a','lastname':'b','email':'c','voucheramount':'d'}]")
              };
              console.log(postData);
              $.ajax({
                  type: "POST",
                  url: "/Admin/TestVoucherCreationEmails",
                  contentType: 'application/json; charset=utf-8',
                  dataType: "json",
                  data: JSON.stringify(postData),
                  success: function (d) {
                      alert("OK");
                  },
                  error: function (xhr, textStatus, errorThrown) {
                      alert("Error:" + errorThrown);
                  }
              });
          });
  </code></pre>
  
  <p>In my model I have;</p>
  
  <pre><code>public class postDataObject
  {
      public int workplaceGiverId { get; set; }
      public int fromMemberId { get; set; }
      public int toMemberId { get; set; }
      public string voucherExpiryDate { get; set; }
      public IEnumerable&lt;BulkVoucherRecipient&gt; recipients { get; set; }
  }
  
  public class BulkVoucherRecipient
  {
      public string firstname { get; set; }
      public string lastname { get; set; }
      public string email { get; set; }
      public string voucheramount { get; set; }
  }
  </code></pre>
  
  <p>In my controller I have;</p>
  
  <pre><code>    [HttpPost]
      public void TestVoucherCreationEmails(postDataObject postedData)
      {
          string g = "";
      }
  </code></pre>
  
  <p>However when I post, the list of recipients is always empty.</p>
  
  <p>If I don't Stringify the list of recipients I get the same result.</p>
  
  <p>Anyone know what I'm doing wrong?</p>
  
  <p><strong>edit</strong>
  The other values all come through ok, just the List is empty.</p>