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

17 lines
957 B
Plaintext

== public mutator methods on the mapper class ==
Jackson 2 ObjectMapper : 47 distinct names
Jackson 3 ObjectMapper : 1 distinct names
Jackson 3 JsonMapper : 1 distinct names
the one Jackson 3 name that matched: [registeredModules] (a getter, not a setter)
== Jackson 2: reconfigure after first use ==
before : {"articleId":1,"title":"Jackson Deep Dive","tags":["java"],"subtitle":null}
after setSerializationInclusion(NON_NULL) : {"articleId":1,"title":"Jackson Deep Dive","tags":["java"],"subtitle":null}
fresh mapper, same setting : {"articleId":1,"title":"Jackson Deep Dive","tags":["java"]}
== Jackson 3: rebuild() derives a new mapper ==
original : {"articleId":1,"subtitle":null,"tags":["java"],"title":"Jackson Deep Dive"}
rebuilt NON_NULL : {"articleId":1,"tags":["java"],"title":"Jackson Deep Dive"}
original again : {"articleId":1,"subtitle":null,"tags":["java"],"title":"Jackson Deep Dive"}
same instance? : false