Pretty print JSON in Java (Jackson)

The Pretty print JSON in Java tutorial shows you how to use Jackson pretty print for JSON Object and String in the console. Pretty Print JSON Object Example to convert Object and jackson pretty print its output in JSON format.

And the json output is in compact mode.

To enable jackson pretty print, … Read more

GSON Annotations Example using JsonAdapter

This tutorial shows you how to create GSON Annotations Example using JsonAdapter. The @JsonAdapter annotation is one of userful GSON annotations. This annotation be used at field or class level to specify the Gson TypeAdapter for serializing or deserializing. GSON converts java classes to JSON using its built-in type adapters by default. Sometimes, They doesn’t … Read more

Please share it if you found this useful
Hide Buttons