[Solved] Access property within javascript object [duplicate]


Use for...in to iterate over the keys of the object and check if your inner object contains your property

var o = {
    "title_can_change":{
        property: 1
    }
};

for (var k in o) {
    if (o.hasOwnProperty(k) && o[k].property) {
        return o[k].property;
    }
}

0

solved Access property within javascript object [duplicate]