Convert Nscfstring To Dictionary Swift

[Solved] Convert Nscfstring To Dictionary Swift | Swift - Code Explorer | yomemimo.com
Question : convert nscfstring to dictionary swift

Answered by : ahsan-lwa8tagab3go

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 : https://stackoverflow.com/questions/53702528/could-not-cast-value-of-type-nscfstring-to-nsdictionary | Last Update : Thu, 20 Jan 22

Answers related to convert nscfstring to dictionary swift

Code Explorer Popular Question For Swift