问题与Swift 2error handling

我正在使用REST获取JSON数据,然后parsing它。 要做到这一点,我使用NSJSONObjectWithData,据我所知,这个方法曾经有一个error handling程序在其参数,但它不再存在。 在我的代码在这里:

let err: NSError? let options:NSJSONReadingOptions = NSJSONReadingOptions.MutableContainers var jsonResult = NSJSONSerialization.JSONObjectWithData(data!, options: options) as! NSDictionary; 

我收到一个错误,说:

“调用可以抛出,但它没有标记'尝试',错误不处理”

我将如何去解决这个错误?

这是正确的实施,

 do { let jsonDictionary = try NSJSONSerialization.JSONObjectWithData(data!, options: NSJSONReadingOptions.MutableContainers) as! NSDictionary //Use your dictionary here. print("JSON : \(jsonDictionary)") } catch { print(error) //Handle any error. }