JAXB java.util.Map binding
问题 I have a Json response which looks like the following: { "data": [ { "param1": "value1", "param2": "value2", . . . "paramN": "valueN" } ] } I don't know the name and the number of the parameters. So, I need and want to bind all these parameters to a java.util.Map field consisting of <"paramX", "valueX"> tuples. To do this, I tried the following code but "parametersMap" field returns null. @XmlRootElement(name="data") @XmlAccessorType(XmlAccessType.FIELD) public class Parameters { @XmlElement