0

I have json array as follows

[{"sno":1,"ref":"123","status":"done"},{"sno":2,"ref":"122","status":"waiting"},
{"sno":3,"ref":"121","status":"pending"}]

Now when I click on button, I want to download excel(.csv format) file of above json where it will contain only two columns "ref" and "status".Does anyone on worked on such thing can please help me here.Thanks!

user7350714
  • 365
  • 1
  • 6
  • 20
  • Possible duplicate of [How to convert JSON to CSV format and store in a variable](http://stackoverflow.com/questions/8847766/how-to-convert-json-to-csv-format-and-store-in-a-variable) – mehulmpt Apr 03 '17 at 18:11
  • That is not working as expected and is different from what I require – user7350714 Apr 03 '17 at 18:28
  • Possible duplicate of [How to export JavaScript array info to csv (on client side)?](http://stackoverflow.com/questions/14964035/how-to-export-javascript-array-info-to-csv-on-client-side) – liorsolomon Apr 04 '17 at 01:49

0 Answers0