title: How to Export JSON to CSV or Excel - Angular 2
body: <p>Say my json is like this: </p>
  
  <pre><code>var readyToExport = [
     {id: 1, name: 'a'},
     {id: 2, name: 'b'},
     {id: 3, name: 'c'}
  ];
  </code></pre>
  
  <p>How can I export this JSON into CSV or Excel file in Angular2?</p>
  
  <p>The browser that I'm using is Chrome. </p>
  
  <p>Maybe Angular2 is not relevant, however, is there any third party plugin that can be injected in Angular2 and perform this task? </p>