Skip to content
Sharp

Networking · interview question

Why does the @JsonFormat annotation in Jackson matter in practice?

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

Correct answer

D. To specify the format of date and time fields.

Why

@JsonFormat is used to define the format of date or time fields during serialization and deserialization, allowing for custom date patterns.

Test yourself on Networking

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

Start free test
All Networking questions →