Jackson reads and writes JSON through a high-performance Jackson Streaming API, with a low memory and process overhead. The only problem with Streaming API is that we need to take care of all the tokens while parsing JSON data. All the JSON values must be read/write in the same order in which it arrives. … [Read more...]
How to Read and Write JSON using GSON
GSON is an open source JSON parser developed by Google to serialize and deserialize JSON in Java. In my previous article, we looked at reading and writing JSON to a file using JSON.simple. In this article, we will learn how to use GSON to Read and Write JSON in Java (parse JSON file to Java objects and vice-versa Java object to JSON) … [Read more...]