I have Json data and i need convert json data to Excel file using javascript,
Reference URL : http://jsfiddle.net/hybrid13i/JXrwM/
i am using this code:
I know its a little late to answer but I have found an nice angular
library that does all the hard work it self.
GITHUB: ngJsonExportExcel
Library Direct Download : Download
Filesaver JS : Download
How to use?
var myapp = angular.module('myapp', ['ngJsonExportExcel'])
ng-json-export-excel
directive and pass data into the directiveng-json-export-excel : it is the directive name
data : it is the data that will be exported (JSON)
report-fields :
pass the column name and the keys that are present in your JSON e.g. customer_name": "Customer Name"
HTML