This is a short tutorial on converting JSON to objects of Java classes (deserialization) and back (serialization), using Java. The Jackson library, one of the more popular JSON libraries used in Java, provides a very elegant way to do this using annotations and reflection.
Imagine you have some JSON describing a book in your library. How would you write a Book class that can be deserialized from this JSON?
{
"title": "The Linux Programming Interface",
"author": "Michael Kerrisk",
"publisher": "No Starch Press",
"isbn": "978-1-59327-220-3"