The following code examples are extracted from open source projects. You can click to vote up the examples that are useful to you. A JSONObject stores JSON data with multiple name/value pairs.JSON can also be output and saved to disk, as in the example above. reading and writing JSON using json-simple.We will use another way(i.e. GSON) of reading JSON.Gson fromJson example. Jackson Streaming API read and write json. Google Gson Tree model example, explaining how to treat JSON as conceptual tree.JsonElement can then return JsonObject which provides addProperty methods to add individual fields/property on Popular JSON file example to get you going with some common everyday JSON tasks. They contain basic JSON data sets so you can populate them with data easily.