FasterXML / jackson-docs

Documentation for the Jackson JSON processor.
719 stars 111 forks source link

Update Jackson Mixin description #14

Closed udalrich closed 6 years ago

udalrich commented 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.

cowtowncoder commented 6 years ago

@udalrich Thanks, that sounds like out of date. I'll have a look.

cowtowncoder commented 6 years ago

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.