Skip to content

Instantly share code, notes, and snippets.

@rapodaca
Created October 5, 2011 15:45
Show Gist options
  • Save rapodaca/1264773 to your computer and use it in GitHub Desktop.
Save rapodaca/1264773 to your computer and use it in GitHub Desktop.
Importing JSON in PhoneGap
#import <PhoneGap/JSON.h>
@implementation Test
-(void)foo:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options {
NSDictionary *map = [NSDictionary dictionary];
NSString *json = [map JSONRepresentation];
NSLog(@"%@", json);
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment