Class MixinIgnoreType


  • public class MixinIgnoreType
    extends Object
    Can be used via Jackson’s ObjectMapper.addMixInAnnotations(Class, Class) to ignore any particular type.

    The following line would cause any values of type String[] to be ignored by the object mapper.

    mapper.addMixInAnnotations(String[].class, MixinIgnoreType.class);
    

    See this page for an extended example:

    https://www.baeldung.com/jackson-ignore-properties-on-serialization