Skip to content

Instantly share code, notes, and snippets.

@oisdk
Created November 19, 2015 22:11
Show Gist options
  • Save oisdk/044e0bf3c8ac38a43eb9 to your computer and use it in GitHub Desktop.
Save oisdk/044e0bf3c8ac38a43eb9 to your computer and use it in GitHub Desktop.
if let
jsonResponse = jsonRoot["response"] as? [String:AnyObject],
jsonCategories = jsonResponse["categories"] as? [String:AnyObject],
book = jsonCategories["on_book"] as? [AnyObject] {
for some in book {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment