'Jackson ignore ClassName as tag
Is it possible to ignore classname in XML tags?
I want to use something like
public class Parent {
@JacksonXmlProperty(localName="first")
String fieldOne;
@JacksonXmlProperty(localName="second")
int fieldTwo;
}
And want to get
<first>bla-bla</first><second>223300</second>
but I get
<Parent><first>bla-bla</first><second>223300</second></Parent>
How to exclude Parent from my XML ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
