JAXB: How to marshal objects in lists?

On the records property add:

@XmlElementWrapper(name="records")
@XmlElement(name="data")

For more information on JAXB and collection properties see:

Leave a Comment