I'm trying to access a nested JSON object from the Wikipedia API where the object name is the primary key.
Example:
{
"pages": {
"13595": {
"pageid": 13595,
"ns": 0,
"title": "London Heathrow Airport",
"extract": "London Heathrow Airport (IATA: LHR, ICAO: EGLL) is a major international airport in West London, England, United Kingdom."
}
}
}
13595 is the pageid and is always different for each page. I want to get the value of "extract".
Any Idea how? I'm using jQuery.