Amit is a former iOS Teacher at Treehouse. He is now the lead developer on the Treehouse iPad app. When not in front of a screen he's exploring the outdoors, drumming, meditating or doing yoga. Doing hand stands and writing code but never together.
When parsing JSON you are faced with optionals and sometimes it feels like it is optionals all the way down. You could end up with nested if-let statements several levels deep. Thanks to functional programming we can avoid some of this mess within our code. Let's explore how to bring sanity to our JSON parsing with functional Swift.