Last active
January 7, 2016 16:09
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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