Skip to content

Instantly share code, notes, and snippets.

@Duraiamuthan
Created April 21, 2014 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Duraiamuthan/11147145 to your computer and use it in GitHub Desktop.
Save Duraiamuthan/11147145 to your computer and use it in GitHub Desktop.
Objective c object to json string serialization
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:ObjcObject options:NSJSONWritingPrettyPrinted error:&writeError];
NSString *jsonString = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment