Home »
MCQs »
Jackson MCQs
Which of the following annotations should be used to indicate the name of the POJO to be serialized?
20. Which of the following annotations should be used to indicate the name of the POJO to be serialized?
- @JsonRoot
- @RootPojo
- @JsonRootName
- @RootObject
Answer: C) @JsonRootName
Explanation:
@JsonRootName annotations should be used to indicate the name of the POJO to be serialized.