ExtensionObjectvalues shall be encoded as a JSON object with the fields shown in Table 29.
Table 29– JSON Object Definition for a ExtensionObject
Name |
Description |
TypeId |
The NodeIdof a DataTypeEncoding Nodeformatted using the rules in 5.4.2.10. |
Encoding |
The format of the Bodyfield encoded as a JSON number. This value is 0 if the body is Structureencoded as a JSON object (see 5.4.6). This value is 1 if the body is a ByteStringvalue encoded as a JSON string (see 5.4.2.8). This value is 2 if the body is a XmlElementvalue encoded as a JSON string (see 5.4.2.9). This field is omitted if the value is 0. |
Body |
Bodyof the ExtensionObject. The type of this field is specified by the Encodingfield. If the Body is empty, the ExtensionObjectis NULL and is omitted or encoded as a JSON null. |
For the non-reversible form, ExtensionObjectvalues shall be encoded as a JSON object containing only the value of the Bodyfield. The TypeIdand Encodingfields are dropped.