The main class in the Gson library that you will use for building an object model from the JSON data is the com.google.gson.Gson class. Here is a list of the core Gson classes from the object model API category:
Class |
Description |
com.google.gson.GsonBuilder |
This class is useful when you need to construct a Gson instance, overriding the default configurations such as custom date format, pretty printing, and custom serialization. |
com.google.gson.Gson |
This class is the main class for using Gson. This class does conversions from JSON to Java objects and the other way round. |
com.google.gson.reflect.TypeToken<T> |
This class is used for getting a generic type for a class. The resulting type can be used for serializing and deserializing JSON data. |