The SheetJS documentation shows a way to take a JSON Object and convert it to an Excel sheet. From their example:
var ws = XLSX.utils.json_to_sheet([
{S:1,h:2,e:3,e_1:4,t:5,J:6,S_1:7},
{S:2,h:3,e:4,e_1:5,t:6,J:7,S_1:8}
], {header:["S","h","e","e_1","t","J","S_1"]});
By default, the header information is Object.keys.
The output looks like this in excel:
My question: how do I leave out the header when converting from Json_to_sheet? I do not want the header in my output, only the numbers in the order of Object.keys.
Please find the updated answer below:
Here we can use skipHeader option inorder to skip the JSON Key values to default as a column name.