Answers for "convert nscfstring to dictionary swift"

0

convert nscfstring to dictionary swift

do { 
  let dd =  userInfo["extraData"] as! String  
  let con = try JSONSerialization.jsonObject(with: dd.data(using: .utf8)!, options: []) as! [String:Any]
  print(con["message_id"]) 
catch {
   print(error)
}
Posted by: Guest on January-13-2022

Code answers related to "convert nscfstring to dictionary swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language