Skip to content
Sharp

Networking · interview question

Why does setting ObjectMapper's FAIL_ON_UNKNOWN_PROPERTIES to false change runtime behavior?

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

Correct answer

C. Unknown JSON properties are ignored during deserialization.

Why

Setting FAIL_ON_UNKNOWN_PROPERTIES to false instructs the ObjectMapper to ignore any properties in the JSON that do not match properties in the target Java class.

Test yourself on Networking

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

Start free test
All Networking questions →