Skip to content
Sharp

Networking · interview question

Which Jackson annotation can be used to rename a JSON property during deserialization?

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

Correct answer

C. @JsonProperty

Why

@JsonProperty is used to specify the exact name of the JSON property that should be mapped to a field during deserialization.

Test yourself on Networking

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

Start free test
All Networking questions →