Errata exists for this version of the document.
StatusCode values shall be encoded as a JSON number for the reversible encoding.
For the non-reversible form, StatusCode values shall be encoded as a JSON object with the fields defined in Table 25.
Table 25 – JSON Object Definition for a StatusCode
Name |
Description |
Code |
The numeric code encoded as a JSON number. The Code is omitted if the numeric code is 0 (Good). |
Symbol |
The string literal associated with the numeric code encoded as JSON string. e.g. 0x80AB0000 has the associated literal “BadInvalidArgument”. The Symbol is omitted if the numeric code is 0 (Good). |
A StatusCode of Good (0) is treated like a NULL and not encoded. If it is an element of an JSON array it is encoded as the JSON literal ‘null’.