title: how to export json data to excel file using javascript?
body: <p>I have json data which needs to be exported to an excel sheet. I have tried</p>
  
  <pre><code>window.open('data:application/vnd.ms-excel,' + encodeURIComponent( $('#tableId').html()));
  </code></pre>
  
  <p>But this works for html table only.</p>