Json

Gson Json Annotations Example

Google Gson provides useful annotations which can customize the serialization/deserialization of object to/from JSON. We will see commonly used Google…

9 years ago

Gson ExclusionStrategy Example

Lets learn Gson ExclusionStrategy and how it can help us.What if you want to exclude some fields from Serialization and…

9 years ago

Gson Custom Serialization Example

Sometimes default serialization/deserialization used by GSON is not sufficient enough and we need a custom behavior to be applied while…

9 years ago

Gson Streaming Api Example

Similar to Jackson Streaming API, Google GSON too provides streaming API for the situation where performance is utmost important. Gson…

9 years ago

Gson Tree Model Example

Similar to Jackson API, Google GSON API provides a conceptual tree notion for JSON. Google Gson Tree model API provides…

9 years ago

Converting JSON to/from Java Objects using Google GSON

This post explains converting Java object to/from JSON using Google GSON library. To get hold of JSON Basics concepts, please…

9 years ago

Jackson Json Annotations Example

Previous data-binding posts gave the idea about how the POJO's are mapped to JSON and viceversa using ObjectMapper API. This…

9 years ago

Jackson Streaming Api Example

For situations where performance is most critical, Jackson comes with Streaming API which is a high performance, sequential access api,…

9 years ago

Jackson Tree Model Example

Conceptually JSON can be represented as a Tree (similar to DOM tree). Therefore it is possible to traverse to individual…

9 years ago

Converting JSON to/from Java Maps using JACKSON API

Since JSON format is essentially a key-value pair grouping, JSON can easily be converted to/from Java maps. This post is…

9 years ago