I want to access the value for each key in this dictionary
{ "key1": "val1", "key2" : "val2", "key3" : "val3", "key4" : [{ "key41": "val41", "key42" : "value42" } ,{ "key41": "val41", "key42" : "value42" } ]}
//for val1
NSString *str = [[self.data objectForKey:Key1] objectAtIndex:1];
//for val41
NSString *str = [[[self.data objectForKey:Key4] objectForKey:1] objectAtIndex:row];
But the app is crashing.
any suggestion??
{ "key1": "val1", "key2" : "val2", "key3" : "val3", "key4" : [{ "key41": "val41", "key42" : "value42" } ,{ "key41": "val41", "key42" : "value42" } ]}
//for val1
NSString *str = [[self.data objectForKey:Key1] objectAtIndex:1];
//for val41
NSString *str = [[[self.data objectForKey:Key4] objectForKey:1] objectAtIndex:row];
But the app is crashing.
any suggestion??