4. swift-json is…
• Wraps lengthy objective-c NSJSONSerialization
…
• into concise, swifty JSON
• even swiftier than SwiftyJSON
• Works both in Swift 1.0 (Xcode 6.0) and Swift 1.1
10. Error Handling
if let b = json["noexistent"][1234567890]["entry"].asBool {
// ....
} else {
let e = json["noexistent"][1234567890]["entry"].asError
println(e)
} // Error Domain=JSONErrorDomain Code=404 "["noexistent"] not found"
UserInfo=0x10064bfc0 {NSLocalizedDescription=["noexistent"] not found}