Parsing Embedded JSON and Arrays in Swift

<p>In the previous posts (<a href="http://robots.thoughtbot.com/efficient-json-in-swift-with-functional-concepts-and-generics">first post</a>, <a href="http://robots.thoughtbot.com/real-world-json-parsing-with-swift">second post</a>) about parsing JSON in
Swift we saw how to use functional programming concepts and generics to make
JSON decoding consise and readable. We left off last time creating a custom
operator that allowed us…</p>

Read more at the source

Real World JSON Parsing with Swift

<p><a href="http://robots.thoughtbot.com/efficient-json-in-swift-with-functional-concepts-and-generics">Last time</a>, we looked at using concepts from Functional Programming and
Generics to parse JSON received from a server into a <code>User</code> model. The final
result of the JSON parsing looked like this:</p>

<pre><code class="swift">struct User: JSONDecodable {
let id: Int
let name: String…</code></pre>

Read more at the source
close