NodeId values shall be encoded as a JSON object with the fields defined in Table H.1.
Decoders that support the deprecated encodings use the JSON datatype to detect which encoding is used. A JSON string is the current encoding; a JSON object means it is the deprecated encoding.
Table H.1 – JSON Object Definition for a NodeId
Name |
Description |
IdType |
The IdentifierType encoded as a JSON number. Allowed values are: 0 - UInt32 identifier encoded as a JSON number. 1 - A String identifier encoded as a JSON string. 2 - A Guid identifier encoded as described in 5.4.2.7. 3 - A ByteString identifier encoded as described in 5.4.2.8. This field is omitted for UInt32 identifiers. |
Id |
The identifier. The value of the IdType field specifies the encoding of this field. |
Namespace |
This field is a JSON number with the NamespaceIndex. The field is omitted if the NamespaceIndex is 0. For NonReversibleEncoding this field is the JSON string containing the NamespaceUri associated with the NamespaceIndex unless the NamespaceIndex is 0. If the NamespaceIndex is 0 the field is omitted. |