Quantcast
Channel: Jackson XML: nested field deserialization - Stack Overflow
Browsing latest articles
Browse All 3 View Live

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 Article



Answer 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 Article

Jackson 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
Browsing latest articles
Browse All 3 View Live




Latest Images