title: Data is not place in datatable, data is coming from ajax call
body: <p>I have ajax json data from ajax call and response is json_encode.</p>
  
  <pre><code>$user=array('id'=&gt;$val-&gt;id,'username'=&gt;$name,'contactno'=&gt;$val-&gt;contact_no);
  echo json_encode($user);
  </code></pre>
  
  <p>I am accessing this and placing in the datatable .
  I have script code</p>
  
  <pre><code>$( document ).ready(function() {
      $.ajax({
      type: "POST",
      url: '&lt;?php echo base_url(); ?&gt;list/people',
      success: function(response) {   
          $('#example').dataTable({
              "bProcessing": true,
              "bDestroy": true,
              "data": response, // &lt;-- your array of objects
              "columns": [
                  {"data": "id"}, 
                  {"data": "username"},
                  {"data": "contactno"}
               ]
          });
      }, 
      });
  });
  </code></pre>
  
  <p>I am unable to get the json data in datatable. Please help</p>