Formatting JSON Dates in Spring Boot 1. Overview In this tutorial, we’ll show how to format JSON date fields in a Spring Boot application. We’ll explore various ways of formatting dates using Jackson, which is used by Spring Boot as its default JSON processor. 2.Using @JsonFormat on a Date Field… Continue Reading spring-boot-formatting-json-dates

Serialize Only Fields that meet a Custom Criteria with Jackson 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 example, say we only want to serialize an integer value if it’s positive –… Continue Reading jackson-serialize-field-custom-criteria

XML Serialization and Deserialization with Jackson 1. Overview In this tutorial, we’re going to look at how to serialize Java objects to XML data using Jackson 2.x and deserialize it back to a POJO. We’ll focus on the basic operation that doesn’t require a lot of complexity or customization. 2.… Continue Reading jackson-xml-serialization-and-deserialization