title: HTML Table to JSON
body: <p>I need to take table rows and convert to JSON. </p>
  
  <p>Any ideas? I have this code here but it does not work.</p>
  
  <pre><code>function tableToJSON(tableID) {
      return $(tableID + "  tr").map(function (row) {
          return row.descendants().pluck("innerHTML");
      }).toJSON();
  }
  </code></pre>