Skip to content
Sharp

Networking · interview question

Which Jackson annotation allows you to ignore a specific field during serialization?

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

Correct answer

A. @JsonIgnore

Why

@JsonIgnore is used to exclude a field from serialization and deserialization. This can be useful when you have fields that should not be exposed in JSON responses.

Test yourself on Networking

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

Start free test
All Networking questions →