Skip to content
Sharp

Networking · interview question

How can Jackson's ObjectMapper handle unknown properties in a JSON string?

Multiple choiceMediumchapter-11-curatedpremiumnetworkingsocket-programming
Choose one answer
Answer and explanation

Correct answer

B. By configuring it to ignore unknown properties

Why

ObjectMapper can be configured to ignore unknown properties using the DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES setting, which allows for more flexible JSON parsing.

Test yourself on Networking

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

Start free test
All Networking questions →