If I have a function like this:
var get = function(place, info){
return places.place.info;
}
and JSON like this:
var places = {
"london":{
"distance":50,
"time":100
}
}
How can I make the function get return the correct value if I use the following? At the moment it's taking it completely literally:
get("london", "time");