Answers for "dictionary to string in 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 "dictionary to string in swift"

Code answers related to "Swift"

Browse Popular Code Answers by Language