gson

Convert object to/from json using Gson

Posted on Updated on

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.

  1. Convert Object to/from Json.
  2. Convert List of objects to/from Json.
  3. Convert Map containing objects.

Read the rest of this entry »

Gson tutorial

Posted on Updated on

Google GSON is JSON parser and generator for java. Google developed GSON for internal use but later open sourced. Gson is relatively easy to use, it contains multiple APIs which you can use to work with JSON. In this GSON tutorial we will go through how to use GSON to parse JSON into Java objects and serialize Java objects into JSON.

These are few topics which we will discussing in this tutorial. Read the rest of this entry »