harmmeijer
Programmer
I get something back like this from freebase:
So my question is how do I read a variable that has a forward slash in its name? In other words: how do I read the value of /location/location/containedby?
Kind regards,
Harm Meijer
Greetings, Harm Meijer
Code:
var result = {
"/location/location/containedby" : "the value",
otherval : 22
}
// result./location/location/containedby gives me syntax error (suggested by
// jsEclipse auto suggest
// result.location.location.containedby not working either
// result."location.location.containedby" gives me a syntax error
result.otherval; // no problem
So my question is how do I read a variable that has a forward slash in its name? In other words: how do I read the value of /location/location/containedby?
Kind regards,
Harm Meijer
Greetings, Harm Meijer