Skip to content

Instantly share code, notes, and snippets.

@zntfdr
Last active January 7, 2016 16:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zntfdr/3fdfefd1f5ae62d52a00 to your computer and use it in GitHub Desktop.
Save zntfdr/3fdfefd1f5ae62d52a00 to your computer and use it in GitHub Desktop.
Medium Post - Parsing JSON Objects in Swift 2 [3/3] https://medium.com/@zntfdr/parsing-json-objects-in-swift-2-c402cb90ac00
let json = JSON(data: dataFromServer)
if let model = MyModel.obtainModel(from: json) {
// success
} else {
// failure
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment