From a0bc73da690d03259c43fd9c70cf76794a8df401 Mon Sep 17 00:00:00 2001 From: TTL <1050636648@qq.com> Date: Thu, 23 Nov 2017 12:49:28 +0800 Subject: [PATCH] demo to_json array of arrays (see #896) [ci skip] --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1d57b27..4b175ae 100644 --- a/index.html +++ b/index.html @@ -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);