Brackets And Arrays - Waveshare RS485 TO ETH Manual

Hide thumbs Also See for RS485 TO ETH:
Table of Contents

Advertisement

485 TO ETH (B) User Manual

3.7. BRACKETS AND ARRAYS

The new version of Vircom supports JSON array design. Give a simple example:
{
"reqBody":
[
0,1
]
}
In this example, there is only one JSON object reqBody, its content is an array, the first
element of the array is data 0, and the second element is data 1. Here we treat the
bracketed array similarly to nested JSON, but this nested JSON does not require keyword
names and colons. The design steps are as follows:
Since reqBody itself is an object, not an array unit, the node type is selected as an
object
Data, not array data. Since its content is an array, according to the brackets are braces
The idea is that the data source of this reqBody is "nested JSON". Then click "Design Nested
JSON".
Figure 14 Array object
17 / 36
www.waveshare.com

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents