You'd be amazed what you can find when you Google something!
I don't know anything about XPath, but I noticed that the @id
you're asking with was associated with something about XPath:
xpath=\'//div[@id="question-mini-list"]
I Googled 'XPath' and found a page that explains that @id
is shorthand for selecting the 'id' attribute of the context node.
Now, I do happen to know a little bit about the next two points in your question, but if I didn't, I'm sure Google would have told me that .getJSON()
returns a data object. From the query, I can deduct that the object's structure is something like:
data: {
query: {
results: {
a: // something
}
}
}
You would either know in advance to use data.query.results.a
or you can discover the data object's structure using the console.
Google would also point me to documentation about JSON callbacks that explain that question mark syntax.