I want to convert this JSON (This is valid JSON) -
["foo", "bar", ["cat", "dog"]]
to a similar Swift Data Structure, i.e.
["foo", "bar", ["cat", "dog"]]
I was wondering if there's a more optimized method of doing this compared to using a regular JSON parser (which might create a bigger object).
I understand that JSON is a serialization format, while a Swift Array is an object. Still, since they look (and function) so alike, maybe there's a more direct method that I'm missing?