I need to get data
from this json but can't figure out the right path
[{
"type": "qrcode",
"symbol": [{
"seq": 0,
"data": "Hello Test!!!",
"error": null
}]
}]
I am trying:
await fetch(QR_URL)
.then(response => response.json())
.then(json => {
console.log(json.symbol.data)
}
and that is giving me error Cannot read property 'data' of undefined