i new json , trying understand how traverse structure query in javascript. want fullurl value.
i can manage query.pages not sure when have navigate "4187783".
i been looking around solution while. appreciate help!
{ "batchcomplete":"", "query":{ "pages":{ "418783":{ "pageid":418783, "ns":0, "title":"san francisco lgbt community center", "contentmodel":"wikitext", "pagelanguage":"en", "touched":"2015-09-21t09:58:52z", "lastrevid":675179151, "length":2449, "fullurl":"https://en.wikipedia.org/wiki/san_francisco_lgbt_community_center" } } } }
i can manage query.pages not sure when have navigate "4187783".
query.pages["4187783"]
for fullurl: query.pages["4187783"].fullurl
Comments
Post a Comment