I'm using NSJSONSerialization to parse JSON in a Swift application. However, the returned dictionary consists of a complicated, deeply nested structure, making it impractical to have very long type declarations (e.g. Dictionary<String, Array<Dictionary<String, ....>>
).
Is there a good way of working with such a structure in Swift, where the collection's structure is very complicated and its types aren't known until runtime?