Spring Boot and Jackson: How to Do Custom Mapping With @JsonSerialize and @JsonDeserialize Sometimes, you need to get your hands dirty.