Files
jackson3-by-example/objectmapper-jsonmapper/output/P05JavaTime.txt
T
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

9 lines
830 B
Plaintext

Jackson 2, no module : InvalidDefinitionException
Java 8 date/time type `java.time.LocalDate` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (or disable `MapperFeature.REQUIRE_HANDLERS_FOR_JAVA8_TIMES`) (through reference chain: java.util.LinkedHashMap["published"])
Jackson 2 + JavaTimeModule : {"published":[2026,11,17],"at":1794876420.000000000}
Jackson 2 + module + disable(TIMESTAMPS): {"published":"2026-11-17","at":"2026-11-17T00:47:00Z"}
Jackson 3, plain JsonMapper : {"published":"2026-11-17","at":"2026-11-17T00:47:00Z"}
Jackson 3 read LocalDate : 2026-11-17
class NOT on classpath : tools.jackson.datatype.jsr310.JavaTimeModule
class present on classpath : com.fasterxml.jackson.datatype.jsr310.JavaTimeModule