Jackson ObjectMapper
Table of Contents
TODO
https://www.baeldung.com/jackson-object-mapper-tutorial
https://stackoverflow.com/questions/10113512/readvalue-and-readtree-in-jackson-when-to-use-which
Important points
- You only need one ObjectMapper bean per application.
- One mistake people make is create many instances of ObjectMapper in many classes across the application.
- This is just a waste of memory. There will be so many ObjectMappers in the memory.
- Their behavior will not be consistent. Using only one ObjectMapper across the application will make sure that the behavior is consistent across the application.
Implementations
https://github.com/explorer436/programming-playground/tree/main/java-playground/json-processing