I have an NSMutableDictionary that contains an array of items (NSDictionary type). I need to remove one particular key (and its associated object) stored in each item. What's the best way to go about this?
Example structure:
NSDictionary *dict = @{
@"v" : @[
@{ @"key1": @"abc", @"key2" : @"def" },
@{ @"key1": @"ghi", @"key2" : @"jkl" }, ...
]
};
I want to eliminate all key1 from the nested dictionary element:
@{
@"v" : @[
@{ @"key2" : @"def" },
@{ @"key2" : @"jkl" }, ...
]
}