The Baeldung logo
  • The Baeldung Logo
  • Start Here
  • Courses ▼▲
    • REST with Spring

      The canonical reference for building a production grade API with Spring

    • Learn Spring Security ▼▲

      THE unique Spring Security education if you’re working with Java today

      • Learn Spring Security Core

        Focus on the Core of Spring Security 5

      • Learn Spring Security OAuth

        Focus on the new OAuth2 stack in Spring Security 5

    • Learn Spring

      From no experience to actually building stuff​

    • Learn Spring Data JPA

      The full guide to persistence with Spring Data JPA

  • Guides ▼▲
    • Persistence

      The Persistence with Spring guides

    • REST

      The guides on building REST APIs with Spring

    • Security

      The Spring Security guides

  • About ▼▲
    • Full Archive

      The high level overview of all the articles on the site.

    • Baeldung Ebooks

      Discover all of our eBooks

    • About Baeldung

      About Baeldung.

JSON

JSON is a light-weight data format used to exchange data between systems in a standardized way. Have a look at how to work with JSON in Java.

  • Gson (14)
  • Jackson Basics (11)
  • Exception (4)
  • Java Null (3)
  • OkHttp (2)

>> Java HttpClient – Map JSON Response to Java Class

>> @JsonIgnore vs @Transient

>> Getting a Value in JSONObject

>> Jackson’s Deserialization With Lombok

>> Object Validation After Deserialization

>> Uploading a File and JSON Data in Postman

>> Map a JSON POST to Multiple Spring MVC Parameters

>> Convert between JSON and Protobuf

>> How to Parse an INI File in Java

>> Reading JSON From a URL in Java

>> Check Whether a String is Valid JSON in Java

>> Deduction-Based Polymorphism in Jackson 2.12

>> Serialize and Deserialize Booleans as Integers With Jackson

>> Get all the Keys in a JSON String Using JsonNode

>> Deserialize Snake Case to Camel Case With Jackson

>> Generate a Java Class From JSON

>> How to Set JSON Content Type In Spring MVC

>> Guide to the ModelAssert Library for JSON

>> “HttpMessageNotWritableException: No converter found for return value of type”

>> Get List of JSON Objects with WebClient

>> Jackson: java.util.LinkedHashMap cannot be cast to X

>> Spring Boot: Customize the Jackson ObjectMapper

>> Unmarshalling a JSON Array Using camel-jackson

>> Get list of JSON objects with Spring RestTemplate

>> Reducing JSON Data Size

>> JSON Parameters with Spring MVC

>> Hypermedia Serialization With JSON-LD

>> Differences Between YAML and JSON

>> Converting a BufferedReader to a JSONObject

>> Mocking the ObjectMapper readValue() Method

>> Compare Two JSON Objects with Gson

>> Introduction to Moshi Json

>> Using JSON Patch in Spring REST APIs

>> Introduction to Jsoniter

>> Reading HttpServletRequest Multiple Times in Spring

>> Calling Default Serializer from Custom Serializer in Jackson

>> Compare Two JSON Objects with Jackson

>> Decode an OkHttp JSON Response

>> How to Process YAML with Jackson

>> Rendering Exceptions in JSON with Spring

>> Spring Boot Consuming and Producing JSON

>> Mapping Multiple JSON Fields to a Single Java Field

>> Serializing and Deserializing a List with Gson

>> Convert String to JsonObject with Gson

>> Iterating Over an Instance of org.json.JSONObject

>> Formatting JSON Dates in Spring Boot

>> Filtering Jackson JSON Output Based on Spring Security Role

>> Deserialize Immutable Objects with Jackson

>> Mapping a Dynamic JSON Object with Jackson

>> Persist a JSON Object Using Hibernate

>> Working with Primitive Values in Gson

>> Escape JSON String in Java

>> Get a Value by Key in a JSONArray

>> Convert JSON to a Map Using Gson

>> Convert XML to JSON Using Jackson

>> Load Spring Boot Properties From a JSON File

>> Save Data to a JSON File with Gson

>> Overview of JSON Pointer

>> Count with JsonPath

>> Returning a JSON Response from a Servlet

>> Exclude Fields from Serialization in Gson

>> Working with JSON in Groovy

>> Introduction to JSON-Java (org.json)

>> Get Log Output in JSON

>> Introduction to the JSON Binding API (JSR 367) in Java

>> Mapping Nested Values with Jackson

>> Using @JsonComponent in Spring Boot

>> Map Serialization and Deserialization with Jackson

>> Jackson Streaming API

>> Introduction to JSONassert

>> Using Optional with Jackson

>> JSON Processing in Java EE 7

>> Guide to @JsonFormat in Jackson

>> Intro to Feign

>> Jackson vs Gson

>> Introduction to JSONForms

>> Spring JSON-P with Jackson

>> A Guide to FastJson

>> A Guide to REST-assured

>> Intro to the Jackson ObjectMapper

>> Introduction to JSON Schema in Java

>> XML Serialization and Deserialization with Jackson

>> More Jackson Annotations

>> Inheritance with Jackson

>> Introduction to JsonPath

>> Working with Tree Model Nodes in Jackson

>> JSON in Java

>> Jackson Annotation Examples

>> Jackson – Decide What Fields Get Serialized/Deserialized

>> Jackson – Working with Maps and nulls

>> Jackson JSON Tutorial

>> Jackson – Bidirectional Relationships

>> Jackson Date

>> Jackson Exceptions – Problems and Solutions

>> Jackson JSON Views

>> Gson Serialization Cookbook

>> Gson Deserialization Cookbook

>> Getting Started with Custom Deserialization in Jackson

>> Jackson – Custom Serializer

>> Jackson Unmarshalling JSON with Unknown Properties

>> Jackson – JsonMappingException (No serializer found for class)

>> How To Serialize and Deserialize Enums with Jackson

>> Jackson – Marshall String to JsonNode

>> Ignore Null Fields with Jackson

>> Jackson – Unmarshall to Collection/Array

>> Jackson – Change Name of Field

>> Serialize Only Fields that meet a Custom Criteria with Jackson

>> Jackson Ignore Properties on Marshalling

  • ↑ Back to Top
res – REST with Spring (eBook) (everywhere)
opt-in
Building a REST API with Spring 5?
Download the E-book
The Baeldung logo

Courses

  • All Courses
  • All Bulk Courses
  • All Bulk Team Courses
  • The Courses Platform

Series

  • Java “Back to Basics” Tutorial
  • Jackson JSON Tutorial
  • Apache HttpClient Tutorial
  • REST with Spring Tutorial
  • Spring Persistence Tutorial
  • Security with Spring
  • Spring Reactive Tutorials

About

  • About Baeldung
  • The Full Archive
  • Editors
  • Jobs
  • Our Partners
  • Partner with Baeldung
  • Terms of Service
  • Privacy Policy
  • Company Info
  • Contact
The Baeldung Logo