I have the following JSON:
{
"parse": {
"title":"Wiki",
"revid":491629701,
"text": {
"*": "<div class=\"dablink\">"
}
}
}
And I try to access: parse->text->*:
$.getJSON(
'my_url&callback=?',
function(json) {
console.log(json.parse.text.*);
}
);
The following error appears:
Uncaught SyntaxError: Unexpected token * .
How can I properly parse this object?
Use square bracket notation instead:
DEMO: http://jsfiddle.net/Nnefq/