I am trying to access a field in a json object in javascript which has the key \'*\'. The jsonstring looks like this:
{\"parse\":
{\"text\":
{\"*\":\"text
try to use
var text = myObject.parse.text['*']
You could do:
var json = {"parse":
{"text":
{"*":"text i want to access"}
}
}
alert(json.parse.text['*']);
Try use the index operator on parse.text
:
var value = object.parse.text["*"];
json.parse.text["*"]
Yucky name for an object member.