Im new to Swift 4 and am trying to decode this JSON from the Wikipedia API. I am struggling to define a Struct because all of the examples/tutorials I have found are only nested 1 - 2 levels deep.
Alongside this how can I decode the data when one of the keys is random?
Thanks
{
"batchcomplete": "",
"query": {
"pages": {
"RANDOM ID": {
"pageid": 21721040,
"ns": 0,
"title": "Stack Overflow",
"extract": "Stack Overflow is a privately held website, the flagship site of the Stack Exchange Network...."
}
}
}
}