Is there any way to tell Jackson to ignore the properties of the parent class when serializing the child class?
class Parent {
private String parentProperty1;
private String parentProperty2;
// getter setter
}
@IgnoreParentProperties // I am expecting something like this
class Child extends Parent {
private String childProperty1;
// getter setter
}
source share