Languages

Gson - Pretty Print JSON in Java

7 points
Asked by:
Root-ssh
6665

How to enable pretty printing with Gson library in Java?
I'd like to make it more human readable.
By default Gson has compact print which is not so user friendly when we want to investigate some of the fields of json.

0 answers
Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.