Skip to content

Instantly share code, notes, and snippets.

@billyxs
Last active August 29, 2015 14:06
Show Gist options
  • Save billyxs/25572da8cb6cb1fd143f to your computer and use it in GitHub Desktop.
Save billyxs/25572da8cb6cb1fd143f to your computer and use it in GitHub Desktop.
iOS - Create dictionary from escaped JSON string
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