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!