@JsonIgnore is used to ignore the logical property used in serialization and deserialization . @JsonIgnore can be used at setters, getters or fields. If you add @JsonIgnore to a field or its getter method, the field is not going to be serialized.
What is JsonIgnore used for?
@JsonIgnore is used to ignore the logical property used in serialization and deserialization . @JsonIgnore can be used at setters, getters or fields. If you add @JsonIgnore to a field or its getter method, the field is not going to be serialized.