title: Jquery Datatable data to json
body: <p>I am working on a scenario where, need to pass datatable Data to server side.
  Here is what i tried - </p>
  
  <p>To get Datatable data in view -</p>
  
  <pre><code>var oTable = $('#DetailTable').dataTable();
  var data = oTable.fnGetData();
  </code></pre>
  
  <p>Then trying to post data using ajax cal -</p>
  
  <pre><code>$.ajax({
      type: "POST",                   
      dataType: 'text',
      data:  data,
      url: "/Admin/SaveAll",                  
      success: function (result) {
      }
  });
  </code></pre>
  
  <p>And in Controller action method -</p>
  
  <pre><code>public ActionResult SaveAll(string data)
  { 
  }
  </code></pre>
  
  <p>I am getting null value at server side. How to pass all datatable data to server side ? </p>