Return lists

When the REST API returns a series of objects in XML, it encloses the list in the root tag, as follows:

<root>
  <return object 1>
    <attribute1>value1</attribute1>
    <attribute2>value2</attribute2>
  </return object 1>
  <return object 2>
    <attribute1>value1</attribute1>
    <attribute2>value2</attribute2>
  </return object 2>
</root>

In JSON, no additional attributes are used. The REST API encloses the list in square brackets ( [ ] ), as follows:

[
 {
    "<attribute1>": "<value1>",
    "<attribute2>": "<value2>",
 }{
    "<attribute1>": "<value1>",
    "<attribute2>": "<value2>",
 }