how to use some indirection when unmarshalling json to java bean using Jersey using jaxb annotations
I'm trying to unmarshall some received json (from Jira restful web service). Problem is: an "issue" has a "summary" property and a list of fields. Summary is not present as an attribute in the received json, but as a value of the "fields" attribute. I insist on unmarshalling to this structure: @XmlRootElement class Issue { String summary; List<Field> fields; // getters/setters and lots of other fields } Received JSON: { "expand":"html", "self":"https://example.com/jira/rest/api/latest/issue/XYZ-1234", "key":"XYZ-1234", "fields": { "summary": { "name":"summary", "type":"java.lang.String",