I\'m using NSJSONSerialization to parse JSON in a Swift application. However, the returned dictionary consists of a complicated, deeply nested structure, making it impractic
myDictionary["accounts"] might be an optional. Try: myDictionary["accounts"]?["active"]?
myDictionary["accounts"]
myDictionary["accounts"]?["active"]?