hi all,
i have a problem with the csv objectreader - i want to read comma-separated string in a pojo. - the problem are the null values in the String - all null values are mapped to blank "" in my pojo.
example:
String: "Value1","Value2",,,,"Value6"
mapped POJO:
V1: "Value1"
V2: "Value2"
V3: ""
V4: ""
V5: ""
V6: "Value6"
but i want to have
V1: "Value1"
V2: "Value2"
V3: null
V4: null
V5: null
V6: "Value6"
I tried the options - but nothing happens:
csvSchema.withNullValue(null);
csvSchema.withNullValue("n/a");
.with(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT)
what is wrong?
thanks
Michael