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
String->JSON
let json= JSON(
string:"{"url":"http://blog.livedoor.com/dankogai/","array":
[null,false,0,"",[],{}],"object":{"object":{},"bool":true,"null
":null,"array":[],"int":42,"double":3.141592653589793,"string":
"a αt弾nꚲ"}}"
)
8.
URL->JSON
let json= JSON(
URL:"http://api.dan.co.jp/asin/4534045220.json"
)