jackson-dataformat-csv: cannot serialize LocalDate

Viewed 3192

When I try to serialize object containing Local date, I get following error:

csv generator does not support object values for properties

I have JSR-310 module enabled, with WRITE_DATES_AS_TIMESTAMPS and I can convert the same object to JSON without problem.

For now I resorted to mapping the object to another, string only object, but it's decadent and wasteful.

Is there a way for Jackson csv mapper to acknowledge localDates? Should I somehow enable JSR-310 specifically for csv mapper?

1 Answers
Related