© Jeff Friesen 2019
Jeff FriesenJava XML and JSONhttps://doi.org/10.1007/978-1-4842-4330-5_9

9. Parsing and Creating JSON Objects with Gson

Jeff Friesen1 
(1)
Dauphin, MB, Canada
 

Gson is another API for parsing and creating JSON objects. Chapter 9 explores the latest version of this open-source Google product.

What Is Gson?

Gson (also known as Google Gson) is a small Java-based library for parsing and creating JSON objects. Google developed Gson for its own projects, but later made Gson publicly available, starting with version 1.0. According to Wikipedia ( http://en.wikipedia.org/wiki/Gson ), the latest version (at the time of writing) is 2.8.5.

Gson’s GitHub page ( http://github.com/google/gson ) identifies five important design goals for Gson:
  • Provide ...

Get Java XML and JSON: Document Processing for Java SE now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.