title: How to pass the list of objects from view to MVC controller using json.stringify
body: <p>I have tried with following code but shows null in the controller side..</p>
  
  <p><strong>view:</strong> </p>
  
  <pre><code>&lt;script&gt;
  function getme(){
  debugger;
  var emp = [
  { empid: 1, name: 'sasi' },
  { empid: 2, name: 'sathish'}
  ];
  emp = JSON.stringify({ 'emp': emp });
  $.ajax({
  contentType: 'application/json; charset=utf-8',
  dataType: 'json',
  type: 'POST',
  url: '/Home/getemplist',
  data: JSON.stringify(emp)
  });
  }
  
  
  &lt;/script&gt;
  &lt;input type="button" onclick="getme();" value="Click me" /&gt;
  </code></pre>
  
  <p><strong>controller:</strong></p>
  
  <pre><code>public void getemplist(List&lt;Emp&gt; emp) 
  { }
  </code></pre>
  
  <p><strong>Emp.cs:</strong></p>
  
  <pre><code>public class Emp
  {
  public int empid { get; set; }
  public string name{get;set;}
  } 
  </code></pre>