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
This commit is contained in:
2026-11-17 00:53:38 +05:30
co-authored by Claude Sonnet 5.5
parent 1d0cd8b36e
commit f5ed5d1605
26 changed files with 857 additions and 0 deletions
@@ -0,0 +1,16 @@
== 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