demo to_json array of arrays (see #896) [ci skip]

This commit is contained in:
TTL 2017-11-23 12:49:28 +08:00 committed by SheetJS
parent 547fba56a2
commit a0bc73da69

@ -80,7 +80,7 @@ var process_wb = (function() {
var to_json = function to_json(workbook) {
var result = {};
workbook.SheetNames.forEach(function(sheetName) {
var roa = X.utils.sheet_to_json(workbook.Sheets[sheetName]);
var roa = X.utils.sheet_to_json(workbook.Sheets[sheetName], {header:1});
if(roa.length) result[sheetName] = roa;
});
return JSON.stringify(result, 2, 2);