forked from sheetjs/sheetjs
demo to_json array of arrays (see #896) [ci skip]
This commit is contained in:
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);
|
||||
|
Loading…
Reference in New Issue
Block a user