title: Loop Through jQuery Datatable to get Particular Columns
body: <p>I'm trying to loop through the rows in my jQuery datatable to pull out certain row information and insert it into my array which I will later use in the AJAX call.</p>
  
  <p>I understand I could use the <code>.each</code> in Datatables, but I only want some of the columns (I have HTML edit/delete that I don't need in the JSON)</p>
  
  <p>The current set up is similar to:</p>
  
  <pre><code>//Create the array
  var myArray = new Array();
  var oTable = $('#myDataTable').dataTable();
  var tableLength = oTable.fnGetData().length;
  
          //Step through table
          for (var i = 0; i &lt; tableLength; i++) {
              myArray[i][0] = oTable.fnGetData(i, 0);
              myArray[i][1] = oTable.fnGetData(i, 1);
              myArray[i][2] = oTable.fnGetData(i, 3);
              myArray[i][3] = oTable.fnGetData(i, 4);
          }
  //Stringify the object
  jsonArray = JSON.stringify(myArray); 
  </code></pre>
  
  <p>Perhaps my syntax is off for <code>fnGetData</code>? The reference sheet does say the parameters are (row, node). Is this the correct way to step through this table getting only certain values?</p>