JSON Files

Gson JsonParser

Gson JsonParser is used to parse Json data into a parse tree of JsonElement and thus JsonObject, which can be used to get JSON values using their keys.

Jackson – Marshal and Unmarshal Java Objects to JSON

This Jackson tutorial will teach us to use Jackson ObjectMapper to read and write JSON data into Java Objects. 1. Setting Up Jackson To include Jackson library in our project, we should include jackson-databind dependency which internally pulls the other two needed dependencies i.e. jackson-annotations and jackson-core. We can find the latest …

Spring REST JSON Response Example

In this spring rest json example, we will learn to write RESTFul webservices capable of returning JSON for resources using MappingJackson2JsonView.

About Us

HowToDoInJava provides tutorials and how-to guides on Java and related technologies.

It also shares the best practices, algorithms & solutions and frequently asked interview questions.