Tag : Deserialiser

GSON provides a set annotations to simplify the serialisation and deserialisation processes. In this article we will see how we can use these annotations and how these can simplify the use of GSON to convert between Java objects and JSON objects.

Albert Attard
Author: 5 years ago

This article continues on a previous article, that described simple and basic use of GSON. In this article we will see how to parse complex JSON objects into existing Java objects that do not necessary have the same structure as the JSON object. We will see how the use of the GSON deserialiser (JsonDeserializer Java Doc) in order to control how the JSON object maps to the Java object.

Albert Attard
Author: 5 years ago