Loading...

Knowledge Base

Find answers, guides, and best practices for ComfortClick bOS.

Data parsing

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

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

637750ae-deab-48d1-a3af-4e688d38604d.jpg

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"

Top