Context: A Spring REST Web Service where is sends a response with POJO (example: Output.java) Now, Output.java contains 2 fields -
@JsonProperty("One")
private String one;
@JsonProperty("Two")
private String two;
So in the response I get both these field.
Question: How can I disable the field attribute "two" from coming in the response in my PROD environment ?