↧
Answer by Felix Gerber for Jackson XML: nested field deserialization
My idea is to replace occupation with an own class. Something like myMeta or whatever you want to call it(be aware in your case like the xml says: meta). This class should cotain the field occupation:...
View ArticleAnswer by Jens for Jackson XML: nested field deserialization
You need one more object:public class MyPojo { private String name; private int age; private Meta meta;}public class Meta{ private String occupation;}
View ArticleJackson XML: nested field deserialization
I have the following xml<MyPojo><name>Jason</name><age>25</age><meta><occupation>Engineer</occupation></meta></MyPojo>I need to deserialize...
View Article