title: Unable to load Datatable array of object
body: <p><a href="https://i.stack.imgur.com/5f6bk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5f6bk.png" alt="enter image description here"></a></p>
  
  <p>I m trying to load datatable after ajax Call to the API, I got my array of object but nothing is loading. Any Help?</p>
  
  <pre><code>  $.ajax({
  
      type: "GET",
      url: origin + "/api/costi-produzione/" + postUrl,
      dataType: 'json',
      success: function (obj, textstatus) {
  
              $('#datatable').DataTable({
                  'data': obj.costiProduzione,
                  'columns': [
                  { "data": "name" },
                  { "data": "NIA1" },
                  { "data": "NIA2" },
                  { "data": "NIA3" }, 
                  { "data": "id" }
                  ]
              });
  
  
      },
      error: function (obj, textstatus) {
          alert(obj.msg);
      }
    }); 
  </code></pre>