JSON
-
Core Java

How to pretty print JSON using Moshi
JSON (JavaScript Object Notation) is a lightweight data-interchange format that is easy for humans to read and write, and easy…
Read More » -
Core Java

Read and Write JSON to File with GSON
1. Introduction Using GSON to read and write json to file is easy with the fromJson and toJson APIs. GSON…
Read More » -
Core Java

Gson Support for Java 8 Date-Time Types
Java 8 introduced a robust date and time API with classes such as LocalDate, LocalDateTime, and ZonedDateTime. These classes provide…
Read More » -
Core Java

How to exclude fields in Gson
Google Gson is a library for serializing and deserializing Java objects to and from JSON. Sometimes, it is necessary to…
Read More » -
Core Java

Custom Field Name with @JsonProperty
1. Introduction Custom field name with @JsonProperty is very useful when mapping Java fields to JavaScript Object Notation (JSON) properties…
Read More » -
Core Java

Custom Field Names with @SerializedName in Gson
Gson is a popular Java library for converting Java objects to their JSON representation and vice versa. One of the…
Read More » -
Core Java

Parse JSON using Moshi
Moshi is a modern JSON library for Android and Java by Square. It simplifies parsing and serializing JSON, supports annotations,…
Read More » -
Core Java

Map Subset of JSON via Jackson
1. Introduction JavaScript Object Notation (JSON) is a text-based data format and widely used in the APIs for exchanging data…
Read More » -
Core Java

Include null Value in JSON Serialization
1. Introduction JavaScript Object Notation (JSON) is text-based data format that is easy for humans to read and write and…
Read More »

