5 Data encoding ToC Previous Next

5.4 OPC UA JSON ToC Previous Next

5.4.4 Enumerations ToC Previous Next

Enumeration values shall be encoded as a JSON number for the reversible encoding.

For the non-reversible form, Enumeration values are encoded the literal with the value appended as a JSON string.

The format of the string literal is:

<name>_<value>

Where the name is the enumeration literal and the value is the numeric value.

If the literal is not known to the encoder, the numeric value is encoded as a JSON string.

Previous Next