File tree 2 files changed +6
-6
lines changed
src/main/java/tools/jackson/databind
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,8 @@ Versions: 3.x (for earlier see VERSION-2.x)
87
87
#4820: Change JDK baseline for Jackson 3.0 from Java 8 to Java 17
88
88
#4835: Remove dynamic work-arounds wrt accessing `Record` definition
89
89
#4840: Increase minimum Android SDK required to 34 for Jackson 3.0
90
+ #4846: Change default of `SerializationFeature.WRITE_DURATIONS_AS_TIMESTAMPS`
91
+ to `false` in 3.0
90
92
#4858: Change default of `DeserializationFeature.FAIL_ON_NULL_FOR_PRIMITIVES`
91
93
to `true` for 3.0
92
94
#4875: Remove `JsonNode.fields()` from 3.0
Original file line number Diff line number Diff line change @@ -255,13 +255,11 @@ public enum SerializationFeature implements ConfigFeature
255
255
* representation may mean either simple number, or an array of numbers,
256
256
* depending on type.
257
257
*<p>
258
- * Note: whether {@link java.util.Map} keys are serialized as Strings
259
- * or not is controlled using {@link #WRITE_DATE_KEYS_AS_TIMESTAMPS}.
260
- *<p>
261
- * Feature is enabled by default, so that period/duration are by default
262
- * serialized as timestamps.
258
+ * Feature is disabled by default as of Jackson 3.0 (in 2.x it was enabled),
259
+ * so that period/duration are by default serialized as textual values,
260
+ * NOT timestamps.
263
261
*/
264
- WRITE_DURATIONS_AS_TIMESTAMPS (true ),
262
+ WRITE_DURATIONS_AS_TIMESTAMPS (false ),
265
263
266
264
/**
267
265
* Feature that determines how type <code>char[]</code> is serialized:
You can’t perform that action at this time.
0 commit comments