I'm having issues accessing values from json using json.parse. This is my JSON:
[
{
"store":[
{
"name":"Grand Theft Auto V"
},
{
"skuid":"UP1004-CUSA00419_00-GTAVDIGITALDOWNL-U001"
},
{
"releasedate":"2014-11-18T00:00:00Z"
} //...
I'm trying to get the name from the store array.
var cif = JSON.parse(response);
// Tried the following:
alert(cif["store"][0].name);
alert(cif.store[0].name);
alert(cif[0].store.name);
alert(cif["store"].name);
if(cif.store[0].name) $("#cif-title").html(cif.store[0].name);
How do I access this value?