I have a need in certain cases to alter the serialized/deserialized value while marshalling/unmarshalling JSON using Jackson2.
Does there exist a mechanism similar to ja
No. There have been requests for post-processing hooks, esp. for deserialization, but no implementation yet.
Jackson 2.2 will come with Converter
annotation (@JsonSerialize(converter=MyConverter.class)
, @JsonDeserialize(converter=...)
) which could perhaps be used for similar purpose. This is similar to JAXB XmlJavaAdapter
.