I have a pojo, and most of the time I don't want to write a field to Json, but for a specific contition I want to write this value to json. For example my model is;
public class Person {
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
public String value;
}
Is it possible to configure Object Mapper to ignore @JsonProperty(access = JsonProperty.Access.WRITE_ONLY)