This is the object,
{
"response": {
"count": 49472,
"items": [
{
"hello": "james",
"title": "game",
"player": "123",
"home": "syd",
}
]
}
}
I would like to get a specific value from player and return 123 in the object using javascript. I have tried looking at other posts but I can't get it to work for my case.
I have managed to do this in python using the code below but it's not as simple to me with js.
for items in obj['response']['items']:
print(items['player'])