Files
asmhatreandClaude Sonnet 5.5 f5ed5d1605 objectmapper-jsonmapper: Jackson 2.23.0 vs 3.3.0 side by side (ObjectMapper/JsonMapper guide rewrite)
Seven runnable programs P01-P07 plus five compile-failure files, JDK 25, no docs/ folder.
Output in objectmapper-jsonmapper/output/ is regenerated by scripts/run-all.sh.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b75Ao6imWN5bj7FHVw
2026-11-17 00:53:38 +05:30

26 lines
1.2 KiB
Plaintext

== default value of a few features (enabledByDefault) ==
feature Jackson2 Jackson3
DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES true false
SerializationFeature.FAIL_ON_EMPTY_BEANS true false
SerializationFeature.INDENT_OUTPUT false false
WRITE_DATES_AS_TIMESTAMPS (J2: SerializationFeature, J3: DateTimeFeature) true false
DeserializationFeature.FAIL_ON_TRAILING_TOKENS false true
MapperFeature.SORT_PROPERTIES_ALPHABETICALLY false true
Jackson 2 default : UnrecognizedPropertyException
Jackson 3 default : accepted unknown field, title=T
Jackson 3 strict : UnrecognizedPropertyException
builderWithJackson2Defaults : UnrecognizedPropertyException (Jackson 2 behaviour back)
order J2 default : {"articleId":1,"title":"T","tags":["a"],"subtitle":"S"}
order J3 default : {"articleId":1,"subtitle":"S","tags":["a"],"title":"T"}
order J3 sorting disabled : {"articleId":1,"title":"T","tags":["a"],"subtitle":"S"}
order J3 Jackson2Defaults : {"articleId":1,"title":"T","tags":["a"],"subtitle":"S"}
{
"article_id" : 1,
"tags" : [ "java", "json" ],
"title" : "Jackson Deep Dive"
}
round trip articleId = 1