Gson is Google's open-source library for serializing and deserializing Java objects to/from JSON.
Gson is Google's open-source library for serializing and deserializing Java objects to/from JSON.
The Gson project is hosted at and available for download from https://github.com/google/gson and licensed using the Apache License 2.0
Latest release: 2.8.6 released on Oct 4, 2019
Project Links
- Gson API: Javadocs for the current Gson release
- Gson guide: This guide contains examples on how to use Gson in your code.
- Gson Roadmap: Details on upcoming releases
Alternatives
Alternative Java-to-JSON binding solutions with similar APIs include FastJSON, Jackson, and svenson. Yet more Java-to-JSON libraries are listed at json.org.
Performance
The latest performance benchmarks for these and other JSON serialization and deserialization solutions for Java are available at https://github.com/eishay/jvm-serializers/wiki.