Gson is an open source Java library. It is a powerful library tool to map data structures that are represented as JSON to Java objects. Gson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. For this purpose, Gson provides several built-in serializers and deserializer. It can also be configured to use custom representations of your objects.