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

  1. You only need one ObjectMapper bean per application.
    1. One mistake people make is create many instances of ObjectMapper in many classes across the application.
    2. This is just a waste of memory. There will be so many ObjectMappers in the memory.
    3. 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