HUBJSONDictionaryPath
@protocol HUBJSONDictionaryPath <HUBJSONPath>
Protocol defining the API for a JSON path that points to an NSDictionary value
See HUBJSONPath and HUBMutableJSONPath for more information on how JSON paths work.
-
Return an
NSDictionaryvalue by following this path in a JSON dictionaryDeclaration
Objective-C
- (nullable NSDictionary<NSString *, NSObject *> *)dictionaryFromJSONDictionary: (nonnull NSDictionary<NSString *, NSObject *> *)dictionary;Parameters
dictionaryThe JSON dictionary to apply the path on
Return Value
An
NSDictionaryvalue found by following the path, ornilas the default in case an operation in the path failed, or if the found value wasn’t anNSDictionaryinstance.
View on GitHub
Install in Dash
HUBJSONDictionaryPath Protocol Reference