Creating JSON document using Java and GSON API

java-thumbnail

We saw how to parse JSON using GSON API, in this post we would take a look at how the same GSON API can be used to create JSON from the Java objects. Please read this┬áto get an idea of what GSON is. Diving right into the topic of this example, we would make use […]

Parsing JSON using Java and GSON library

java-thumbnail

In my previous post here, I gave a brief overview of JavaScript Object Notation (JSON). In this post I would go a bit further and show how one can parse the JSON documents into Java objects using the GSON library. The JSON data for this tutorial was obtained from: “https://api.twitter.com/1/users/show.json?screen_name=” where screen_name was TwitterAPI and […]