JSON sollte ein Objekt sein
RFC 8259 Sec. 2 Absatz 2:
A JSON text is a serialized value. Note that certain previous specifications of JSON constrained a JSON text to be an object or an array. Implementations that generate only objects or arrays where a JSON text is called for will be interoperable in the sense that all implementations will accept these as conforming JSON texts.
Dennoch sollte überlegt werden, ob nicht alle Bodys in der API Objekte sind. Dafür müsste die Operation "List Applications" wie folgt geändert werden.
Vorschlag
Das Array sollte unter dem Schlüssel "applications" in ein Objekt eingebettet werden.
vorher
[
{
"applicationId": "12345",
...
}
]
nachher
{ "applications": [
{
"applicationId": "12345",
...
}
]
}
Edited by Andreas Huber