Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

navigate json object javascript

data = {"id":1,
        "name":"abc",
        "address": {"streetName":"cde",
                    "streetId":2
                    }
        }

data.address.streetName; //Retrieves "cde"
//or
data["address"]["streetName"]
 
PREVIOUS NEXT
Tagged: #navigate #json #object #javascript
ADD COMMENT
Topic
Name
9+5 =