Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse empty field value as null #709

Open
1 task
geohuz opened this issue Aug 10, 2021 · 1 comment
Open
1 task

parse empty field value as null #709

geohuz opened this issue Aug 10, 2021 · 1 comment
Assignees

Comments

@geohuz
Copy link

geohuz commented Aug 10, 2021

Parsing or Formatting?

  • Formatting
  • [x ] Parsing

something like:

a b c
,,,

should be parsed as :

[{
a: null,
b: null,
c: null
}]

I could not find a option to make the parsing output the above json, the parsed output is always like {a: ""} But it is critical for validation.

@fubar
Copy link

fubar commented Jan 21, 2022

I came here to post this exact issue. A CSV row like "foo","" is semantically different from "foo",: The second value should be returned as an empty string in the first example, and as null in the second one. Both examples currently result in an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants