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,27 @@
writeValueAsString : {"articleId":1,"subtitle":null,"tags":["java","json"],"title":"Jackson Deep Dive"}
writeValueAsBytes : 82 bytes
writeValue(Path) : {"articleId":1,"subtitle":null,"tags":["java","json"],"title":"Jackson Deep Dive"}
writeValue(Stream) : 82 bytes
read String : Jackson Deep Dive
read byte[] : Jackson Deep Dive
read File : Jackson Deep Dive
read Path : Jackson Deep Dive
read InputStream : Jackson Deep Dive
read Reader : Jackson Deep Dive
List<Article> size : 2, element class: Article
List.class element : java.util.LinkedHashMap
tree title : Jackson Deep Dive
tree tags[1] : json
convertValue to Map : {articleId=1, subtitle=null, tags=[java, json], title=Jackson Deep Dive}
convertValue to bean : 9 / From a Map
readerFor(Article) : Jackson Deep Dive
pretty writer : {\n "k" : 1\n}
Jackson 2 readValue(URL, Class) exists : true
Jackson 3 readValue(URL, Class) exists : false
Jackson 3 readTree(URL) exists : false
non-ASCII byte[] round trip equal : true (bytes are UTF-8 by default: true)