Data parsing

Very useful online parsing tool can be foundĀ https://jsoneditoronline.org/

We simply paste our API response and select the Tree option.

Image 4256

If we want to parse the temperature information from the API response, we need to find it in the response data. We can see that temperature information is located at the "t" value and it's value is 12.

We need to call all previous arrays in order for bOS to get to the temperature data.

"t" can be found in the "metData" array and "metData" array can be found under "data" array.

To select the array and command we want to read we need to use a comma "." in the parser.

Our command should look like this: "data.metData.t"