📜  将 nscfstring 转换为字典 swift 代码示例

📅  最后修改于: 2022-03-11 15:01:03.044000             🧑  作者: Mango

代码示例1
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)
}