title: Error passing json data through ajax method into DataTable
body: <p>Im getting an error in my IDE on the console of Google Chrome that states: 
  <code>Uncaught TypeError: Cannot read property 'length' of undefined.</code> This error is thrown when <code>dataTables</code> takes the raw json data and attempts to inject it into the table. </p>
  
  <pre><code> // Got the data - add it to the table
  for ( i=0 ; i&lt;aData.length ; i++ ) {
  _fnAddData( settings, aData[i] );
  }
  
  &lt;script&gt; 
  $(document).ready(function(){
      $('#clickMe').click(function(){
  
      $.ajaxPrefilter(function(options, originalOptions, jqHXR ){
          options.async = true;
      });
  
  $.ajax({
      //type: 'GET',
      url: 'URL',
      dataType:"json",
      data: "getAddressResults", //name of json expression
      success: function(data){
      var jsTable = $('#data').dataTable();
      jsTable.fnClearTable();
  
      $.each(data, function(key, value){
          var i = this.length;
          alert("There are : " + i + " entries."); //shows how many objects are in my json data 
  
      jsTable.dataTable().fnAddData([
          value[key].childName,
          value[key].childNum,
          value[key].lineNum,
          value[key].parentName,
          value[key].parentNum
      ]);
  });
          if(data){
              var txt = "";
              if(res &gt; 0){
                  for (var i=0;i&lt;data.length;i++){
                  if (data[i].parentNum &amp;&amp; data[i].childNum){
                      txt += "&lt;tr&gt;&lt;td&gt;"+data[i].parentNum+"&lt;/td&gt;&lt;td&gt;"+data[i].childNum+"&lt;/td&gt;&lt;/tr&gt;"
                  }
              }
              if(txt !=""){
                  $("#data").append(txt).removeClass("hidden");
              }
          }
      }
  },
  error: function(jqXHR, textStatus, errorThrown){
          alert(textStatus + ': ' + errorThrown);
          }       
      });
          return false;
  });
  
  
      $('#data').DataTable({
      columns:[
          { title: "childName" },
          { title: "childNum" },
          { title: "lineNum" },
          { title: "parentName" },
          { title: "parentNum" }
          ]
  });
  </code></pre>