Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse array of strings without quotes #39

Open
lingolab2 opened this issue Dec 6, 2018 · 1 comment
Open

Unable to parse array of strings without quotes #39

lingolab2 opened this issue Dec 6, 2018 · 1 comment

Comments

@lingolab2
Copy link

Excellent tool. I had used it a year ago. Now the same XLSX file does not parse due to lack of quotes in the string-array fields. Is there a config-option to make it backward compatible?

./export.sh 
parsing excel: myXLSfile.xlsx
  * sheet:  sheetName
undefined:1
([a,b,c])
  ^
ReferenceError: a is not defined
    at eval (eval at parseJsonObject (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:10:10), <anonymous>:1:3)
    at eval (<anonymous>)
    at parseJsonObject (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:10:10)
    at parseRow (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:236:24)
    at parseSheet (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:137:22)
    at workbook.forEach.sheet (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:332:26)
    at Array.forEach (<anonymous>)
    at Object.parseWorkbook (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/parser.js:316:14)
    at Object.toJson (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/lib/xlsx-to-json.js:169:34)
    at files.forEach.item (/Users/mohideennoordeen/Downloads/ProKanjiMigration/xlsx2json-master/index.js:63:14)

@zk-luke
Copy link
Owner

zk-luke commented Dec 21, 2018

really sorry for that, it's a break update and cannot make it backward compatible for now.
array should be like this ["a","b","c"] now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants