public class MyPojo {
private int a;
private int b;
@JsonIgnoreProperties
private int c;
// getters and setters
}
ObjectMapper objectMapper = new ObjectMapper();
MyPojo myPojo = objectMapper.readValue(jsonString, MyPojo.class);
@JsonIgnoreProperties(ignoreUnknown = true)
public class MyPojo {
private int a;
private int b;
private int c;
// getters and setters
}
@JsonIgnoreProperties(value = {"d", "e"})