title: POST List<object> API ASP.NET via Ajax
body: <p>My ajax post:</p>
  
  <pre><code>var data = [
              {
                  "Item": "B0104-0080J01DTT13",
                  "Stock": "C022",            
                  "Inventory": 0               
              },
              {
                  "Item": "B0104-0080J01DTT13",
                  "Stock": "C022",            
                  "Inventory": 0               
              }];
  
      $.ajax({
                  type: 'POST',
                  url: My URL,
                  data: data,
                  dataType: 'json',                 
                  success: function (response) {
                      console.log(response);
                  }
  
              });
  }
  </code></pre>
  
  <p>My ASP API FUNCT:</p>
  
  <pre><code>[HttpPost]
  
  public string MyFunction(List&lt;object&gt; DataInput)
  {
  
      return "myreturn";
  
  }
  </code></pre>
  
  <p>When I run: para "DataInput" does have any value, it may be null.
  But pass para is object not a List like: (object DataInput), it runs correctly.
  Anyone have a idea for my problem. THANKS! </p>