(转载自:http://blog.csdn.net/ios_of_swift/article/details/47280483)
1.在swift1.0时代,解析的前几句可能是这样的
- <spanstyle="white-space:pre"></span>leturl=NSURL(string:"Server")
- letdata=NSData(contentsOfURL:url)
- letobject=NSJSONSerialization.JSONObjectWithData(data,options:NSJSONReadingOptions.MutableContainers,error:nil)