Skip to content
Sharp

Networking · interview question

When using Jackson's ObjectMapper to deserialize JSON, what should you consider regarding unknown properties?

Multiple choiceMediumchapter-11-curatedpremiumnetworkingasynchronous-http
Choose one answer
Answer and explanation

Correct answer

D. Configure it to ignore unknown properties to prevent exceptions.

Why

To prevent exceptions when deserializing JSON with unknown properties, configure the ObjectMapper to ignore them. This ensures the deserialization process is robust against changes or additions to the JSON structure that aren't represented in the Java class.

Test yourself on Networking

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

Start free test
All Networking questions →