logo image

How to ignore missing properties in JSON deserialization using jackson

1 Answer

1 year ago by

You can use the following mapper configurations to Ignore missing / extra properties while deserialization using jackson

private final static ObjectMapper lenientMapper = new ObjectMapper();
lenientMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
lenientMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
1 year ago by Megamind