javascript - Parsing a JSON array to a a Swift Array -


i want convert json (this valid json) -

["foo", "bar", ["cat", "dog"]] 

to similar swift data structure, i.e.

["foo", "bar", ["cat", "dog"]]  

i wondering if there's more optimized method of doing compared using regular json parser (which might create bigger object).

i understand json serialization format, while swift array object. still, since (and function) alike, maybe there's more direct method i'm missing?

archetitech json more nicely , use 1 of many available swift json frameworks.


Comments