I have an array of objects. By default, sheet_to_json uses object keys as headers. However, I need to rename those headers without explicitly modifying my array of objects.
Is this possible?
replace the last line with below.
XLSX.utils.sheet_add_json(ws, data, {skipHeader: true, origin: "A2"});