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.
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 »