Keyang / node-csvtojson

Blazing fast and Comprehensive CSV Parser for Node.JS / Browser / Command Line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

develleoper opened this issue · 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?

commented

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.