JSON response:
{
"matches": [
{
"platformId": "EUW1",
"gameId": 3427082245,
"champion": 21,
"queue": 450,
"season": 9,
"timestamp": 1511224973899,
"role": "NONE",
"lane": "MID"
}
],
"startIndex": 0,
"endIndex": 1,
"totalGames": 136
}
Serialization:
let myJsonMatchList = try JSONSerialization.jsonObject(with: content, options: JSONSerialization.ReadingOptions.mutableContainers) as! <Array<Dictionary<String,Any>>
Could not cast value of type __NSDictionaryM
(0x10b693260) to NSArray
(0x10b692dd8).
The problem is with the Array Dictionary String Any Replacing it with AnyObject works but it does not allow me to access anything from within, i.e other than to just print the raw Json.
What is the proper structure for this serialization because I am stuck?