title: How to export JavaScript Json info to csv (on client side)?
body: <p>from array info to csv :</p>
  
  <pre><code>&lt;script&gt;
  
      function downloadCsv() {
          var data = arrCsvData;
          var csvContent = "data:text/csv;charset=utf-8,";
          data.forEach(function(infoArray, index) {
  
              dataString = infoArray.join(",");
              csvContent += index &lt; data.length ? dataString + "\n" : dataString;
  
          });
  
          var encodedUri = encodeURI(csvContent);
          var link = document.createElement("a");
          link.setAttribute("href", encodedUri);
          link.setAttribute("download", "my_data.csv");
  
          link.click();
      }
  
  &lt;/script&gt;
  </code></pre>
  
  <p>Similarly how can i export javascript json info to csv (on client side)??</p>