sheet_to_json empty cell be skip, suport to option is better? #582
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#582
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
excel:
Col1, Col2, Col3, Col4
Val1, Val2, ,Val4
after call sheet_to_json():
[{Col1: 'Val1', Col2: 'Val2', Col4:'Val4'}] # the key 'Col3' was lost.
But, i need result is: [{Col1: 'Val1', Col2: 'Val2', Col3: null, Col4:'Val4'}]
If has option skipUndfendVale and defaultValue will better?
like:
And changed the soure code:
Killer - thanks for this @jimjin using your fork till this gets merged into releases!
Make sure you are using the latest version of js from https://cdn.sheetjs.com/ (Read "how to use") and you can refer this https://github.com/SheetJS/sheetjs/issues/159#issuecomment-403228877