Quantcast
Channel: Jackson XML: nested field deserialization - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Jackson XML: nested field deserialization

$
0
0

I have the following xml

<MyPojo><name>Jason</name><age>25</age><meta><occupation>Engineer</occupation></meta></MyPojo>

I need to deserialize it to the following POJO:

public class MyPojo {    private String name;    private int age;    private String occupation;}

The problem here is that occupation is wrapped within meta element


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>