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:
@@ -0,0 +1,19 @@
|
||||
Jackson 2 2.23.0 -> {"articleId":1,"title":"Jackson Deep Dive","tags":["java","json"],"subtitle":null}
|
||||
Jackson 3 3.3.0 -> {"articleId":1,"subtitle":null,"tags":["java","json"],"title":"Jackson Deep Dive"}
|
||||
identical JSON: false
|
||||
|
||||
Jackson 2 read title: Jackson Deep Dive
|
||||
Jackson 3 read title: Jackson Deep Dive
|
||||
|
||||
{
|
||||
"articleId" : 1,
|
||||
"subtitle" : null,
|
||||
"tags" : [ "java", "json" ],
|
||||
"title" : "Jackson Deep Dive"
|
||||
}
|
||||
|
||||
m2 class: com.fasterxml.jackson.databind.ObjectMapper
|
||||
m3 class: tools.jackson.databind.json.JsonMapper
|
||||
m3 superclass: tools.jackson.databind.ObjectMapper
|
||||
m3 is-a tools.jackson.databind.ObjectMapper: true
|
||||
@JsonInclude lives in: com.fasterxml.jackson.annotation
|
||||
Reference in New Issue
Block a user