Jackson Serialization for Duration is broken since Spring Boot 2.2 upgrade #19345
Labels
status: superseded
An issue that has been superseded by another
type: regression
A regression from a previous release
Jackson added a breaking change for the way
Duration
is serialized. Before TheDurationSerializer
was usingSerializationFeature.WRITE_DATES_AS_TIMESTAMPS
to check whetherDuration
should be serialized as a timestamp or not. Since 2.10 Jackson usesSerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS
to check whetherDuration
should be serialized as a timestamp or not.I would suggest that the
JacksonAutoConfiguration
addsSerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS
with a valuefalse
as a default configuration.This was done in FasterXML/jackson-modules-java8#75
The text was updated successfully, but these errors were encountered: