Convert object to/from json using Gson
Google GSON is JSON parser and also generator for java, which is widely use to convert object to/from Json. To learn more about Gson one can refer to Gson tutorial. GSON library is used to convert any object to Json and vice-versa. Here in this tutorial we’ll be discussing below popular examples to convert different object to/from Json.
- Convert Object to/from Json.
- Convert List of objects to/from Json.
- Convert Map containing objects.