title: parse html table to json jquery
body: <p>how to convert html table to json data? i need result like this. Code must be on jquery</p>
  
  <pre><code>{"status":"ok","data":[{"name":"Haroldas","number":444,"address":"address"},{"name":"tom","number":999,"address":"rrr"},{"name":"ted","number":333,"address":"kkk"}]}
  </code></pre>
  
  <p>here is my table:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;table id="excel"&gt;
    &lt;thead&gt;
      &lt;tr role="row"&gt;
        &lt;th&gt;name&lt;/th&gt;
        &lt;th&gt;number&lt;/th&gt;
        &lt;th&gt;address&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr role="row" class="odd"&gt;
        &lt;td class="sorting_1"&gt;Haroldas&lt;/td&gt;
        &lt;td&gt;444&lt;/td&gt;
        &lt;td&gt;address&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr role="row" class="even"&gt;
        &lt;td class="sorting_1"&gt;ted&lt;/td&gt;
        &lt;td&gt;333&lt;/td&gt;
        &lt;td&gt;kkk&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr role="row" class="odd"&gt;
        &lt;td class="sorting_1"&gt;tom&lt;/td&gt;
        &lt;td&gt;999&lt;/td&gt;
        &lt;td&gt;rrr&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>EDIT: here is jquery code, but not exactly because in table are thead</p>
  
  <pre><code>$.makeTableToArray = function () {
      var table = $('#excel tr').map(function() {
          return $(this).find('td').map(function() {
              return $(this).html();
          }).get();
      }).get();
  
      return table;
  };
  </code></pre>
  
  <p>thank you</p>