Added "blankValue" option to sheet_to_json function #420

Closed
lukenofurther wants to merge 0 commits from master into master
lukenofurther commented 2016-05-29 09:49:02 +00:00 (Migrated from github.com)

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 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.
lukenofurther commented 2016-05-29 09:51:43 +00:00 (Migrated from github.com)

This change relates to issue #159

This change relates to issue #159
ffflabs commented 2017-01-25 18:26:05 +00:00 (Migrated from github.com)

I would totally use this feature.

I would totally use this feature.
SheetJSDev commented 2017-03-23 06:34:57 +00:00 (Migrated from github.com)

The option is defval, just added in commit 9ae3a64 -- it will be available in the 0.9.6 release

The option is `defval`, just added in commit 9ae3a64 -- it will be available in the 0.9.6 release

Pull request closed

Sign in to join this conversation.
No description provided.