Jackson
- 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
Linksโ
- Custom (De)serializers with Jackson, Baeldung
- Ignoring unknown properties globally, StackOverflow