Jackson Annotation Examples 1. Overview In this article, we’ll do a deep dive into Jackson Annotations. We’ll see how to use the existing annotations, how to create custom ones and finally – how to disable them. Further reading: More Jackson Annotations This article covers some lesser-known JSON processing annotations provided… Continue Reading jackson-annotations

Intro to the Jackson ObjectMapper 1. Overview This write-up focuses on understanding the Jackson ObjectMapper class – and how to serialize Java objects into JSON and deserialize JSON string into Java objects. To understand more about the Jackson library in general, the Jackson Tutorial is a good place to start.… Continue Reading jackson-object-mapper-tutorial

Jackson Ignore Properties on Marshalling 1. Overview This tutorial will show how to ignore certain fields when serializing an object to JSON using Jackson 2.x. This is very useful when the Jackson defaults aren’t enough and we need to control exactly what gets serialized to JSON – and there are… Continue Reading jackson-ignore-properties-on-serialization

Jackson – Decide What Fields Get Serialized/Deserialized 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 Field The simplest way to make sure a field is both serializable and deserializable is to… Continue Reading jackson-field-serializable-deserializable-or-not

Jackson Unmarshalling JSON with Unknown Properties 1. Overview In this article, we’re going to take a look at the unmarshalling process with Jackson 2.x – specifically at how to deal with JSON content with unknown properties. If you want to dig deeper and learn other cool things you can do… Continue Reading jackson-deserialize-json-unknown-properties