encodeJson¶
Canonical path: o6.encodeJson
encodeJson
¶
Encode an OPC UA value with the reversible JSON encoding.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
obj
|
Any
|
One scalar value of a registered OPC UA type. |
required |
Returns:
| Type | Description |
|---|---|
bytes
|
The OPC UA JSON representation of |
Raises:
| Type | Description |
|---|---|
TypeError
|
|
StatusCodeError
|
open62541 rejected the value. |