Tags: java
JSON(Javascript Object Notation) is the universal language for data exchange in modern applications, particularly when working with REST APIs. In Java, Jackson library is often used for JSON processing.
ObjectMapper: Bridge between JSON and Java objects
JsonNode: Tree model for dynamic JSON navigation
ObjectNode/ArrayNode: Mutable JSON node builder
Create new JSON object
Deserialization (JSON -> Object)
Serialization (Object -> JSON)
Don't forget to register JavaTimeModule
If the getter have no corresponding field, then deserialization would fail
Use Ignore Unknown Properties
Or use Read-Only Properties