OPC Foundation
  • Documents
  • NodeSets
  • Search
5.4.2.16 ExtensionObject

ExtensionObjectvalues shall be encoded as a JSON object with the fields shown in Table 34.

Table 34– JSON Object Definition for an 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.

Please report errors or issues with the site to webmaster.

Copyright © 2023 - OPC Foundation