
Spring Boot: Customize the Jackson ObjectMapper
1. Overview When using JSON format, Spring Boot will use an ObjectMapper instance to serialize responses and deserialize requests. In this tutorial, we’ll take a look at […]
1. Overview When using JSON format, Spring Boot will use an ObjectMapper instance to serialize responses and deserialize requests. In this tutorial, we’ll take a look at […]
1. Introduction Working with predefined JSON data structures with Jackson is straightforward. However, sometimes we need to handle dynamic JSON objects, which have unknown properties. In […]
1. Overview In this article, we try to understand how to use @JsonFormat in Jackson. It is a Jackson annotation that is used to specify how to […]
1. Overview A typical use case when working with JSON is to perform a transformation from one model into another. For example, we might want […]
1. Overview In this article, we’ll have a look at working with class hierarchies in Jackson. Two typical use cases are the inclusion of subtype […]
1. Overview This article covers some additional annotations that were not covered in the previous article, A Guide to Jackson Annotations – we will go through seven […]
1. Overview This tutorial will focus on working with tree model nodes in Jackson. We’ll use JsonNode for various conversions as well as adding, modifying and removing nodes. […]
1. Overview In this article we’ll explore the various ways we can control if a field is serialized / deserialized by Jackson or not. 2. A Public […]
1. Overview In this tutorial, we’ll go over the best ways to deal with bidirectional relationships in Jackson. We’ll discuss the Jackson JSON infinite recursion problem, […]
1. Overview In this article, we’ll have a look at comparing two JSON objects using Jackson – a JSON processing library for Java. 2. Maven Dependency First, […]
1. Overview This quick tutorial will illustrate how to use Jackson 2 to deserialize JSON using a custom Deserializer. If you want to dig deeper and […]
1. Overview This tutorial will show how to deserialize a JSON Array to a Java Array or Collection with Jackson 2. If you want to dig […]
1. Overview In this tutorial, we’ll see how to convert an XML message to JSON using Jackson. For readers new to Jackson, consider getting familiar […]
1. Overview In this tutorial, we’ll go over the most common Jackson Exceptions – the JsonMappingException and UnrecognizedPropertyException. Finally – we’ll briefly discuss Jackson no such method errors. 2. “JsonMappingException: […]
1. Overview In this tutorial, we’ll go over how to use Jackson JSON Views to serialize/deserialize objects, customize the views and finally – how to […]
1. Overview In this tutorial, we’ll serialize dates with Jackson. We’ll start by serializing a simple java.util.Date, then Joda-Time, and finally, the Java 8 DateTime. 2. […]
1. Overview In this quick tutorial, we will analyze the marshalling of entities with no getters and the solution for the Jackson JsonMappingException exception. If you want to […]
1. Overview This quick tutorial will show how to control the way Java Enums are serialized and deserialized with Jackson 2. To dig a little deeper […]
1. Overview This tutorial is going to illustrate how we can use Jackson to only serialize a field if it meets a specific, custom criteria. For […]
1. Overview In this article, we’ll look at serialization and deserialization of Java maps using Jackson. We’ll illustrate how to serialize and deserialize Map<String, String>, Map<Object, String>, and Map<Object, Object> to and […]