How to ignore missing properties in JSON deserialization using jackson

Views: 935 Ask New Question

On By

1 Answer

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);
On By

Answer This Question