Created
March 19, 2016 15:42
-
-
Save DLSteve/0f40865b5a0123e60531 to your computer and use it in GitHub Desktop.
Try this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* JSON File | |
{ | |
"batchcomplete": "", | |
"continue": { | |
"sroffset": 10, | |
"continue": "-||info" | |
}, | |
"query": { | |
"searchinfo": { | |
"totalhits": 20345 | |
}, | |
"search": [ | |
{ | |
"ns": 0, | |
"title": "Hello", | |
(...) | |
*/ | |
//My attempt | |
//... | |
$.getJSON(wikiJson, function(data) { | |
var statusHTML = '<ul class="bulleted"'; | |
$.each(data, function (index, searchResult) { | |
statusHTML += '<li>' + searchResult.query.search[0].title + '</li>'; | |
}); | |
//... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment