Created
August 10, 2012 10:37
-
-
Save jlcampana/3313280 to your computer and use it in GitHub Desktop.
JSON (NSDictionary) a String
This file contains hidden or 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
NSError *error; | |
NSData *body = [NSJSONSerialization dataWithJSONObject:payJSON options:NSJSONWritingPrettyPrinted error:&error]; | |
NSString *jsonString = [[NSString alloc] initWithData:body encoding:NSUTF8StringEncoding]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment