Allow CSV to differentiate between null
and empty fields (foo,,bar vs. foo,"",bar)
#469
Labels
Milestone
null
and empty fields (foo,,bar vs. foo,"",bar)
#469
I have not found any way to read a CSV that differentiate null and empty values.
I have played with various options and I also do a debug step by step in the jackson code.
The need is to be able to read a CSV generated by Postgres (and other apps) that make a difference between null and empty values.
Here an example of a 2 lines CSV:
foo,,bar
foo,"",bar
I expect to retrieve the following arrays:
["foo", null, "bar"]
["foo", "", "bar]
Can we add an option in CsvParser.Feature such as EMPTY_NON_QUOTED_STRING_AS_NULL?
This will also help to read CSV created with CsvGenerator.Feature.ALWAYS_QUOTE_EMPTY_STRINGS option
Thanks for taking time to read me.
The text was updated successfully, but these errors were encountered: