January 2018
Intermediate to advanced
414 pages
10h 29m
English
In our examples, we have created the Customer class and we have seen that returning an object of that class in our controller, either directly or through a response entity, it will get converted into JSON. This mechanism is known as serialization, converting an object into a representation, in our case, a JSON object.
Spring is used for archiving this Jackson, a widely known library to handle JSON objects in Java. You could find more information about that library on their website: https://github.com/FasterXML/jackson.
When we output a Java object, Spring will use internally an ObjectMapper, a class provided by Jackson, to create the JSON representation. This object mapper will go through the provided object and ...
Read now
Unlock full access