With the JSON extract node you can acces single parameter from a JSON formated string.
You need to define your output pins by click on the smal (+) at the enf of “Parameter”.
You can create multiple output pins and also define the type of each pin.
By double click on the name of each parameter inside the inspector you can change the name of each pin.
h2. example extract of a JSON string:
{
“Sensor1”: 123,
“Sensor2”: 456.789,
“Sensor3”: “64°C”
}
The Path of each parameter needs to match with the JSON “names”.
example extract of a JSON string within a JSON string:
{
“status”: “active”,
“coordinates”: {
“xyz”: {
“x”: -2.9614355466252236,
“y”: 2.6274625336182105,
“z”: 1.214722764700417 },
“pose”: 6.24686808924005 }
}
The Path of each parameter needs to match with the JSON “names”.
All sub parameter can be reached by using a “/”.
So to get acces to the “x” of “coordinates” you need to define the path as:
coordinates/xyz/x