HUBJSONIntegerPath
@protocol HUBJSONIntegerPath <HUBJSONPath>
Protocol defining the API of a JSON path that points to an NSInteger value
See HUBJSONPath and HUBMutableJSONPath for more information on how JSON paths work.
-
Return an
NSIntegervalue by following this path in a JSON dictionaryDeclaration
Objective-C
- (NSInteger)integerFromJSONDictionary: (nonnull NSDictionary<NSString *, NSObject *> *)dictionary;Parameters
dictionaryThe JSON dictionary to apply the path on
Return Value
An NSInteger value found by following the path, or
0as the default in case an operation in the path failed, or if the found value couldn’t be converted into anNSInteger.
View on GitHub
Install in Dash
HUBJSONIntegerPath Protocol Reference