I've managed to get the data back through ajax, then I parse it, but I don't understand how to get the items.
API Link:
JSON Response
{
"response": {
"total_count": 1,
"games": [{
"appid": 252950,
"name": "Rocket League",
"playtime_2weeks": 1631,
"playtime_forever": 28185,
"img_icon_url": "217214f6bd922a8da8bdd684aa94b1ef8e7724d1",
"img_logo_url": "58d7334290672887fdd47e25251f291b812c895e"
}]
}
}
I'm showing you the link so you can understand the hierarchy.
So yea I get the data back into the success and parse it:
JSON.parse(result);
Then I do:
alert(result); //- works and shows me the data.
alert(result.response.total_count); // - doesn't work.
I don't understand how to get the items out.
Thanks!