Skip to content

Instantly share code, notes, and snippets.

@dlinsin
Created May 10, 2010 04:48
Show Gist options
  • Save dlinsin/395688 to your computer and use it in GitHub Desktop.
Save dlinsin/395688 to your computer and use it in GitHub Desktop.
#import "NSObject+YAJL.h"
NSDictionary *vals = [jsonResponse yajl_JSON];
[player fill:vals];
- (void)fill:(NSDictionary *)vals {
NSString *key;
for (key in vals) {
[self setValue:[vals objectForKey:key] forKey:key];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment