5 Data encoding ToC Previous Next

5.4 OPC UA JSON ToC Previous Next

5.4.5 Arrays ToC Previous Next

One dimensional Arrays shall be encoded as JSON arrays.

If an element is NULL, the element shall be encoded as the JSON literal ‘null’.

Otherwise, the element is encoded according to the rules defined for the type.

Multi-dimensional Arrays are encoded as nested JSON arrays. The outer array is the first dimension and the innermost array is the last dimension. For example, the following matrix

0 2 3
1 3 4

is encoded in JSON as

[ [0, 2, 3], [1, 3, 4] ]

Previous Next