I have a json string like:
{ \"a\":\"val1\", \"b\":\"val2\", \"c\":\"val3\" }
And I have an objective C header file like:
- (id)initWithDictionary:(NSDictionary *)dictionary { if (self = [super init]) { _a = [dictionary objectForKey:@"a"]; _b = [dictionary objectForKey:@"b"]; _c = [dictionary objectForKey:@"c"]; } return self; }