Hello I receive the JSON as follows:
[
{
"degreesC": 18.39599609375,
"device_id": "test-dev1",
"humidity": 40.6005859375,
"raw": "421/dg==",
"time": "2019-11-11T21:16:31.633569185Z"
},
{
"degreesC": 19.6044921875,
"device_id": "test-dev1",
"humidity": 37.98828125,
"raw": "Rm4Udg==",
"time": "2019-11-11T21:40:20.87571354Z"
}
]
How can I parse it I have problems to access because of [ ].
I use var obj = JSON.parse(testi);
testi is the JSON above.
But this don’t work when obj.time
Could somebody help me?