Skip to content
Sharp

Networking · interview question

Why is it useful to configuring FAIL_ON_UNKNOWN_PROPERTIES to false in Jackson's ObjectMapper?

Multiple choiceEasychapter-11-curatedpremiumnetworkingjackson-objectmapper
Choose one answer
Answer and explanation

Correct answer

D. To ignore unknown JSON properties during deserialization.

Why

Setting FAIL_ON_UNKNOWN_PROPERTIES to false allows Jackson to ignore any extra properties in the JSON that do not have corresponding fields in the Java class. This is useful in cases where the JSON may have additional data that we do not need to map.

Test yourself on Networking

A free test with instant, explained results. No account needed.

Start free test
All Networking questions →