javascript - Json first object is a *, how to get it? -


this question has answer here:

if run:

$("#results ul").append(data.parse.langlinks.map(function(val){ return "<li>" + val.lang + "</li>" })); 

i correct values of lang need first object , doesn't have verbal naming has

*

so when try access val.* get:

uncaught syntaxerror: unexpected token *

jsfiddle

access object this: val['*'] .


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

Ansible warning on jinja2 braces on when -

html - How to custom Bootstrap grid height? -