asafdav / ng-csv

Simple directive that turns arrays and objects into downloadable CSV files
MIT License
573 stars 215 forks source link

More Formating Options? #182

Open atodicebear opened 7 years ago

atodicebear commented 7 years ago

Hey, I want to use this Project to export csv files but as well .json. With the Example of ng.click I can just add .json and it creates a Json File but not in the Format. So are there some more OPtions or something I can change to get a Json Format like this

{
  "zzz": "tewst",
  "aaa": "hello world"
}

At the moment it is like this

"zzz":"test"
"aaa":"hello world"