Closed udalrich closed 6 years ago
This page, https://github.com/FasterXML/jackson-docs/wiki/JacksonMixInAnnotations, says to use
objectMapper.getSerializationConfig().addMixInAnnotations(Rectangle.class, MixIn.class); objectMapper.getDeserializationConfig().addMixInAnnotations(Rectangle.class, MixIn.class);
However, objectMapper.get*Config() returns an immutable object. The documentation also implies that there is one set of mixins for serialization and one for deserialization. This does not appear to be the case anymore.
objectMapper.get*Config()
@udalrich Thanks, that sounds like out of date. I'll have a look.
Updated. I also think that Wikis are user-editable; or if not, I should be able to grant access for anyone who wants to contribute.
This page, https://github.com/FasterXML/jackson-docs/wiki/JacksonMixInAnnotations, says to use
However,
objectMapper.get*Config()
returns an immutable object. The documentation also implies that there is one set of mixins for serialization and one for deserialization. This does not appear to be the case anymore.