HUBJSONURLPath
@protocol HUBJSONURLPath <HUBJSONPath>
Protocol defining the API of a JSON path that points to an NSURL
value
See HUBJSONPath
and HUBMutableJSONPath
for more information on how JSON paths work.
-
Return an
NSURL
value by following this path in a JSON dictionaryDeclaration
Objective-C
- (nullable NSURL *)URLFromJSONDictionary: (nonnull NSDictionary<NSString *, NSObject *> *)dictionary;
Parameters
dictionary
The JSON dictionary to apply the path on
Return Value
An
NSURL
instance parsed from anNSString
value found by following the path, ornil
as the default in case an operation in the path failed, or if the found value wasn’t anNSString
or couldn’t be parsed into anNSURL
.