I have below scenario. i.e i have a object as below.
var x= {
"item": {
"count": 6,
"type": "product",
"max": "100",
},
}
var loadJson = JSON.parse(x);
now if i have a string like.
var y="item"
how can i access loadJson.y.count
, I am getting error saying y is undefined.