Skip to main content


  • Use the @JsonValue annotation for specifying what the JSON or XML value should be if itโ€™s not the same as the output as #toString().

Complex Deserializationโ€‹

A use case for this was when I was serializing from an abstract class with multiple implementations.1


  1. Getting Started with Custom Deserialization in Jackson, Baeldung โ†ฉ