looping through json data in JavaScript
<p>This is similar to <a href="http://stackoverflow.com/questions/2556476/ajax-coldfusion-cfc-json-hello-world">this question</a>, but I thought I'd reword it a bit differently in order to make myself more clear.
I have this json coming back from a $.ajax call:</p>

<p>{"COLUMNS":["PERSONID","FIRSTNAME","LASTNAME"],"DATA":[[1001,"Scott","Wimmer"],[1002,"Phillip","Senn"],[1003,"Paul","Nielsen"]]}</p>

<p>Q: In JavaScript, how do I parse through it to make a table such as:</p>

<pre><code>&lt;table&gt;
 &lt;thead&gt;
  &lt;tr&gt;
   &lt;th&gt;PersonID&lt;/th&gt;
   &lt;th&gt;First Name&lt;/th&gt;
   &lt;th&gt;Last Name&lt;/th&gt;
  &lt;/tr&gt;
 &lt;/thead&gt;
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt;1001&lt;/td&gt;
   &lt;td&gt;Scott&lt;/td&gt;
   &lt;td&gt;Wimmer&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;1002&lt;/td&gt;
   &lt;td&gt;Phillip&lt;/td&gt;
   &lt;td&gt;Senn&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
   &lt;td&gt;1003&lt;/td&gt;
   &lt;td&gt;Paul&lt;/td&gt;
   &lt;td&gt;Nielsen&lt;/td&gt;
  &lt;/tr&gt;
 &lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
