Example: JSON arrays and collections
For example: @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public static class Foo { @XmlAttribute private String test; public Foo() { } public Foo(String test) { this.test = test; } public String getTest() { return test; } public void setTest(String test) { this.test = test; } } This a List or array of this Foo class would be represented in JSON like this: [{"foo":{"@test":"bill"}},{"foo":{"@test":"monica}"}}] It also expects this format for input