Articles tagged in: Gson



Gson Advanced — Generics

In this blog post, we'll explore how Gson deals with Java generics. Generics are a challenge for any data mapping library, since they bring an uncertainty with them. If you want to review Java generics, use cases and implications, feel free to read up on the Wikipedia article. Gson is …

Continue Reading

Gson Advanced — Mapping of Enums

At the beginning of this series, we've shown you how to map nested objects, arrays and lists, Java maps and more. In this blog post, you'll learn how to (de)serialize Java enums. Of course, this is not the only post in our Gson series. If you're interested in the …

Continue Reading

Gson Builder — Relax Gson with Lenient

The formatting of JSON content has to fulfill some specific rules to be compliant with the standard. The standard is described in the RFC4627 specification. It lays the foundation on how keys and values are separated, how arrays are structured and so on. In this blog post we'll explore how …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.