29 Sep '14, 3pm

Parsing Embedded JSON and Arrays in Swift

This works, but there are two other issues at play. First, you can see that reaching further into embedded JSON can result in a lot of syntax on one line. More importantly, Swift’s type inference starts to hit its limit. I experienced long build times because the Swift compiler had to work very hard to figure out the types. A quick fix would be to give the closure a parameter type: { (o: JSONObject) in o <| "name" } , but this was even more syntax. Let’s try to overload our custom operator

Full article: http://robots.thoughtbot.com/parsing-embedded-json-and-ar...

Tweets

Real World JSON Parsing with Swift

robots.thoughtbot.com 18 Sep '14, 4pm

Last time , we looked at using concepts from Functional Programming and Generics to parse JSON received from a server into...