Added "blankValue" option to sheet_to_json function #420
No reviewers
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#420
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
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?
This change adds an option to the second argument that is used when a blank cell is encountered in the sheet. The default behaviour, which remains in place when the new option is not present, is that blank cells are entirely omitted from the returned JSON object.
To use the option, include a "blankValue" key to the 2nd argument object and give it a value (other than false or undefined). The value is used as the value in the returned JSON object for any blank cells in the sheet.
This change relates to issue #159
I would totally use this feature.
The option is
defval
, just added in commit9ae3a64
-- it will be available in the 0.9.6 releasePull request closed