Jackson Tutorial
Jackson is a widely-used Java library, which is for handling JSON data in Java applications. Whether you’re working with REST APIs, data serialization, or data interchange, Jackson provides robust tools for seamless integration.
In this series, we will discover the functionalities Jackson offered. From the basics of JSON serialization and deserialization to advanced techniques like managing field names, customize serialization or deserialization, and more.
1.Basic Data Serialization and Deserialization
- Convert String to Java Object, Array and List with Jackson
- Convert Java Object, Array and List to Json String with Jackson
- Convert Java Object to Map with Jackson
- Convert Java Properties to Object and Vise Versa
2.Jackson Annotations
- @JsonIgnore
- @JsonIgnoreProperties
- @JsonIgnoreType
- @JsonProperty
- @JacksonInject
- @JsonValue
- @JsonPropertyOrder
- @JsonInclude
- @Jsonalias
- @JsonFilter
2.1 Annotations for Serialization
- Avoid UnrecognizedPropertyException by Ignoring Unknown Fields
- Customize Serialization Output with @JsonValue
- Prevent a Class from being Serialized
- Control the Field Order in Serialized JSON Using @JsonPropertyOrder
- Custom Logic to Include or Exclude Fields With @JsonFilter and SimpleBeanPropertyFilter
- Ignore null Fields with @JsonInclude