I have the information stored in a specific structure:
var nicedata =[{...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}, {...}]
each individual object has this format:
0:{1: "1", Affiliate Name: "AName", Brand1: "Bname", Business type: "Company Stores", Calendar Month Year: "mm/dd/yyyy", Category: "Null", ...}
1:{1: "1", Affiliate Name: "AName", Brand1: "Bname", Business type: "Company Stores", Calendar Month Year: "mm/dd/yyyy", Category: "Null", ...}
I am attempting to export this data into a CSV file, but my current attempt using alaSQL is not producing the desired output.
alasql("SELECT * INTO CSV('DataExport.csv',{headers:true}) FROM ?", [niceData]);
Although I can successfully download the data, each row's entire content is being inserted into a single cell.
My goal is to generate a proper CSV file with headers and corresponding values. Can anyone provide assistance with achieving this?