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 i want to access"}
}
}
Trying to access myObject.parse.text.* does not work, neither does myObject.parse.text[0].
I have searched for an hour now, but havent found any hint that the asterisk has a special meaning.
If I just traverse the complete tree and make String comparison a la ‘if (key == “*”)’ I can get the text I want to retrieve, but I would like to directly access this field.
Is there no way to access the field ?