JSON to NSDictionary?

Kind time of days respected rostovchanina. All night tormented by the question, how to convert a string flown in an ordinary dictionary. Example, a string of the form


It is necessary to become clear Swift—É NSDictionary

 "status" : 401,
 "answer" : "user_not_exists",
 "data" : [
 "email" : "example@gmail.com"

to be able to refer, for example, like this: decodedJsonString["answer"]
Thank you in advance.


Most interested in option arms, not the library.
July 2nd 19 at 18:11
2 answers
July 2nd 19 at 18:13
but if without? Hands? - kira_Marvin commented on July 2nd 19 at 18:16
: yeah. to build my own.
https://developer.apple.com/swift/blog/?id=37 - kavon.Murphy commented on July 2nd 19 at 18:19
July 2nd 19 at 18:15
In General, the solution proved to be using the SwiftyJSON library, though with some pererabotchiki, due to the fact that she is a little did not meet the needs. Thank you !

Find more questions by tags SwiftJSON