How to rename root key in JSON serialization with Jackson
Well, by default Jackson uses one of two annotations when trying to determine the root name to be displayed for wrapped values – @XmlRootElement or @JsonRootName. It expects this annotation to be on the type being serialized, else it will use the simple name of the type as the root name. In your case, you … Read more