I am using REST to get JSON data and then parse it. To do this I am using NSJSONObjectWithData, as far as I\'m aware this method used to have an error handler within its par
Here is the correct implementation,
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. }