You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change default of SerializationFeature.WRITE_DATES_AS_TIMESTAMPS to false in 3.0Β #4845
It seems that the default of writing basic Date/Time values as numeric timestamps is something that should be changed: while this is more efficient than the alternative of writing Date/Time value as Strings, most users expect Strings, and most frameworks seem to change the default.
So the proposal is to change the default accordingly.
Activity
cowtowncoder commentedon Jan 30, 2025
Change has been approved: we can proceed with change!
Fix tests post FasterXML#4845
[Jackson3.0] Fix #4845: change `SerializationFeature.WRITE_DATES_AS_Tβ¦
cowtowncoder commentedon Feb 7, 2025
Defaults have been changed for 3.0.0-rc1.
soc commentedon Jul 22, 2026
Is there some place that explicitly lists which date/time classes from the JDK are affected, and how?
I went through various pages linked from this discussion, but could not find anything definitive.
pjfanning commentedon Jul 22, 2026
@soc this is configurable. If you don't like the setting default, you can change it.
soc commentedon Jul 22, 2026
Both liking/disliking as well as configuring a setting requires understanding what the setting does, which is the exact topic of my original question.
pjfanning commentedon Jul 22, 2026
and long closed issues are not the place to suddenly start a discussion. Open a GitHub discussion.
soc commentedon Jul 22, 2026
What discussion?
pjfanning commentedon Jul 22, 2026
@soc https://github.com/FasterXML/jackson-databind/discussions - anyone can open discussions there
pjfanning commentedon Jul 22, 2026
The Javadoc on these feature is quite detailed. I don't see how we could be much more specific.
jackson-databind/src/main/java/tools/jackson/databind/cfg/DateTimeFeature.java
Lines 148 to 172 in 9b2adbf
soc commentedon Jul 22, 2026
Jackson 3:
Jackson 2: