Skip to content

Instantly share code, notes, and snippets.

@aenhsaihan
Last active December 29, 2015 11:08
Show Gist options
  • Save aenhsaihan/7661271 to your computer and use it in GitHub Desktop.
Save aenhsaihan/7661271 to your computer and use it in GitHub Desktop.
Creating my first test
if (jsonData2 != nil) {
NSError *errorInfo2;
id backToDict = [NSJSONSerialization JSONObjectWithData:jsonData2 options:NSJSONReadingMutableContainers error:&errorInfo2];
if (!backToDict) {
NSLog(@"%@", [errorInfo2 localizedDescription]);
} else {
NSLog(@"%@", backToDict);
}
} else {
NSLog(@"Your JSON could not be converted to a dictionary");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment