From the tutorial I had the impression that this should work (simplified example):
public class Foo {
private String bar;
public String getBar() {
You can configure ObjectMapper
to ignore fields it doesn't find in your class with
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
If not configured this way, it will throw exceptions while parsing if it finds a field it does not recognize on the class type you specified.