I just can't believe How to convert a JSON string to a dictionary? is the best answer I could find.
Isn't it supposed to be something like JSON(jsonString).asDict() or somthing?
I tried using SwiftyJson to ease the pain, but it doesn't seem to provide the functionality?
When I create a jsonObject using Swifty's JSON(jsonString)
, I can't pass it to a function which expects a dictionary.
Is there a way to convert JSON(jsonString) to Dictionary?
I tried JSON(jsonString).object as! [String:AnyObject]
JSON[jsonString].dictionaryValue
.. etc
If SwiftyJson doesn't, is there another library that supports it?