node-csvtojson icon indicating copy to clipboard operation
node-csvtojson copied to clipboard

Empty values in number type columns are parsed as empty strings instead of null

Open develleoper opened this issue 4 years ago • 1 comments

When I'm parsing a column I have specified as numerical using the colParser parameter, it is returning empty values as empty strings, instead of nulls.

This results in JSON with an incorrect data type down the line; is there a solution to this?

develleoper avatar Jul 15 '21 01:07 develleoper

Seconding this. If parsing as an empty string is desired, then the cell data could have been "", which also results in parsing as empty string.

MFinn87 avatar Dec 01 '22 20:12 MFinn87