title: How to get JQUERY Datatables content to MVC Controller
body: <p>I have a jquery datatable which has not pre defined columns. I want to post datatable content to MVC Controller for checking values. I found <a href="https://datatables.net/reference/api/rows().data()" rel="nofollow noreferrer">Datatables.api</a> for getting content and found something for serializing. </p>
  
  <pre><code>var table = $('#example').DataTable();
  
  
          var _content = table
              .rows()
              .data();    
  
         var _tableContent =JSON.stringify(_content, Object.getOwnPropertyNames(_content));
  var url = "/Home/TestList";
          $.ajax({
              url: url,
              data: {
                  data:_tableContent
              },
              cache: false,
              type: "POST",
              success: function (data) {
  
              },
              error: function (reponse) {
                  alert("error : " + reponse);
              }
          });
  </code></pre>
  
  <p>I can get data in Controller but i can not serialize </p>
  
  <pre><code>public class ColumnEntityList
      {
          public string id { get; set; }
          public string[] _list { get; set; }
      }
  
   public ActionResult TestList(string data)
          {
               List&lt;ColumnEntityList&gt; result = JsonConvert.DeserializeObject&lt;List&lt;ColumnEntityList&gt;&gt;(data);
              return Json("temp");
          }
  </code></pre>
  
  <p>I need help about this issue..</p>
  
  <p>{"0":["sadad","asdad","asdad","dsad","ewewasd"],
  "1":["asdad","adsad","adsad","asdasd","adasdasd"]}</p>