Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #nscfstring #dictionary #swift
ADD COMMENT
Topic
Name
8+1 =