Jackson serialization: how to ignore superclass properties
You can register a custom Jackson annotation intropector which would ignore all the properties that come from the certain super type. Here is an example: public class JacksonIgnoreInherited { public static class Base { public final String field1; public Base(final String field1) { this.field1 = field1; } } public static class Bean extends Base { … Read more