Last active
August 29, 2015 14:06
-
-
Save billyxs/25572da8cb6cb1fd143f to your computer and use it in GitHub Desktop.
iOS - Create dictionary from escaped JSON string
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *data = | |
[NSJSONSerialization JSONObjectWithData: [@"{\"a\":\"A\", \"b\":\"B\"}" dataUsingEncoding:NSUTF8StringEncoding] | |
options: NSJSONReadingMutableContainers | |
error: nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment