brent at architechies.com
Fri Apr 15 17:12:25 CDT 2016
> Aren’t JSON arrays and objects actually the same thing? They’re both essentially just ordered dictionaries, with objects mapping keys to properties, functions etc., while arrays are just a dictionary where the keys are consecutive integer (or should be, as long as you don’t mess with them)
JSON is a wire format which includes support for certain, specific types: objects (basically, dictionaries with string keys and heterogenous values), arrays (with heterogenous values), strings, booleans, doubles, and nulls. JSON has nothing to say about how these things are represented in memory once they're parsed out of the wire format.
More information about the swift-evolution