i tried to change a field name as shown below :
@Getter
@Setter
@EqualsAndHashCode
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Resource {
@JsonProperty("serviceMetaData")
private List<String> metadata;
}
but response still showing metadata field. please help .