I have to access property on object:
var jsonobj= {
    "first": {
        "second": 120
    }
}
How to check if second is available or not? jsonobj.hasOwnProperty() returns false if we check here.
If I want to change the value of second from 120 to 100, how can I achieve it?
Can I get a generalized solution, so that it works for any number of hierarchies?
Edit: What if I don't know the name of the property?
 
     
     
     
     
     
    