Home » Core Java » gson


Enable Pretty Print JSON Output using Gson example

In this example we are going to see how to enalbe pretty printing in JSON. As you might have noticed in the previous examples the JSON output of our programs was not properly aligned and thus somehow hard to read. For this demo we are going to use a simple Java class thay we used in the “Convert Java Object ...

Read More »

Gson Streaming to read and write JSON in Java example

In this example we are going to see GSON straming API to read and write JSON in a Java application. Streaming operation is the fastest and most efficient way to process JSON data. On the other hand it can be tricky to use, especially when reading from JSON represenation, because you have to handle all the data manually. You can ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns