I have the following json_response:
"list" : {
"meta": {
"type": "resource-list",
"start": 0,
"count": 1
},
"resources": [
{
"resource": {
"classname": "Quote",
"fields": {
"change": "-0.091499",
"chg_percent": "-0.790833",
"day_high": "11.730000",
"day_low": "11.430000",
"issuer_name": "J. C. Penney Company, Inc.",
"issuer_name_lang": "J. C. Penney Company, Inc.",
"name": "J.C. Penney Company, Inc. Holdi",
"price": "11.478500",
"symbol": "JCP",
"ts": "1458576181",
"type": "equity",
"utctime": "2016-03-21T16:03:01+0000",
"volume": "3269312",
"year_high": "11.990000",
"year_low": "6.000000"
}
}
}
]
}
and I extract ids with following java script
var name = '';
var jsonstr = json_response
var obj = $.parseJSON(jsonstr);
$.each(obj, function () {
name += name += this['list']['meta']['type']+ "<br/>";
});
$('#divjson').html(name);
QUESTION: how can I get the value of day_low or day_high using above java script?
Thanks,