<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