I am trying to create a dictionary from data that is held in a server, I receive the data but I cannot convert the data to an NSDictionary, I believe it is held in
NSDictionary
Update for Swift 2.
Now you must use it inside a try catch block.
do { let responseObject = try NSJSONSerialization.JSONObjectWithData(data, options: []) as! [String:AnyObject] } catch let error as NSError { print("error: \(error.localizedDescription)") }