I'm working on payment gateway, in which i'm receiving response in notification type. i want to fetch data from notification.object which is in Any data type. I have tried https://nacho4d-nacho4d.blogspot.in/2016/05/dictionary-to-json-string-and-json.html this to convert from string to Dictionary, but my problem is i'm not able to convert it to Dictionary.
Also i have tried to convert it to String & then tried to convert it to dictionary by following:
if let tmp : [NSObject : AnyObject] = notification.object as? [NSObject : AnyObject] {
print(tmp)
//print(tmp[status] as? String)
}
or
if let unfo :Dictionary<String,String> = notification.object as? Dictionary<String,String> {
print(unfo)
}