pavelosipov / POSJSONParsing

Tiny wrapper around NSJSONSerialization to parse JSON with fluent API and detailed error reporting.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make it possible to enumetate all keys in POSJSONMap (NSFastEnumeration)

pavelosipov opened this issue · comments

Use case example.

@implementation POSJSONMap (MRCClimate)

- (NSArray<NSString *> *)allKeys {
    return [self map:^id _Nonnull(NSString * _Nonnull key, POSJSONObject * _Nonnull value) {
        return key;
    }];
}

@end