I usually post about Dev stuff on Twitter - you can follow me there:
Follow @baeldungThis tutorial illustrates the most common Jackson 2 tasks, problems and solutions while marshalling and unmarshalling JSON.
Basic Jackson Marshalling
Learn quickly how to serialize a Java Entity to a JSON String – and control the mapping process perfectly, to reach the exact JSON format you’re aiming for.
Basic Jackson Unmarshalling
Learn how to deserialize a JSON String into a Java Entity – no matter how weird the JSON input is, we need to map it to a well defined Java Entity class.
Advanced Jackson Marshalling
Learn advanced serialization configuration and tuning to deal with conditions, various data types and custom Jackson exceptions.
-
Serialize Only Fields that meet a Custom Criteria with Jackson
-
Serialize Enums as JSON Objects
-
JsonMappingException (No serializer found for class)
-
Jackson – Custom Serializer
-
Jackson Date
-
Jackson JSON Views
-
Jackson Exceptions – Problems and Solutions
Advanced Jackson Unmarshalling
Learn more advanced tips and tricks for unmarshalling JSON input into Java Entity classes.
The implementation of all these examples and code snippets can be found in my github project – this is an Eclipse based project, so it should be easy to import and run as it is.
I usually post about Dev stuff on Twitter - you can follow me there: