Functions
The following functions are available globally.
-
Attempt to cast an
Any
toT
or throwThrows
DecodingError.typeMismatch(expected, actual, metadata)
Declaration
Swift
public func cast<T>(_ object: Any) throws -> T
-
Undocumented
Declaration
Swift
public func ~= <T>(lhs: T.Type, rhs: Any.Type) -> Bool
-
Undocumented
Declaration
Swift
public func == (lhs: DecodingError.Metadata, rhs: DecodingError.Metadata) -> Bool
-
Undocumented
Declaration
Swift
public func == (lhs: DecodingError, rhs: DecodingError) -> Bool
-
Undocumented
Declaration
Swift
public func => (lhs: Any, rhs: KeyPath) throws -> Any
-
Undocumented
Declaration
Swift
public func =>? (lhs: Any, rhs: OptionalKeyPath) throws -> Any?
-
Undocumented
Declaration
Swift
public func => (lhs: OptionalKeyPath, rhs: OptionalKeyPath) -> OptionalKeyPath
-
Undocumented
Declaration
Swift
public func =>? (lhs: OptionalKeyPath, rhs: OptionalKeyPath) -> OptionalKeyPath
-
Undocumented
Declaration
Swift
public func => (lhs: OptionalKeyPath, rhs: KeyPath) -> OptionalKeyPath
-
Undocumented
Declaration
Swift
public func =>? (lhs: KeyPath, rhs: OptionalKeyPath) -> OptionalKeyPath
-
Undocumented
Declaration
Swift
public func == (lhs: OptionalKey, rhs: OptionalKey) -> Bool
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Declaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError
if a key is missing or decoding fails.Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysParameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatchError
,.other(error, metadata)
or possible.missingKeyError
on required keysParameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
something
-
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[A?]?]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A]]?]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : B]]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[A]?]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : B?]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B]]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : C]]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : B]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [A?]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A]?]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : B]?]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[A?]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A?]]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[[[A]]]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[[A : B]]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A]]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : B?]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : [B]]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : [B : C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[[A : B]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [[A]]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B]?]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : C]?]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : B?]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B?]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [[B]]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [[B : C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : C?]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : [C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : [C : D]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : [B : C]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [[A : B]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> [A]? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B?]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B]]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : C]]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B]?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : C?]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C]]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C : D]]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : C]?]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : B?]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B]?]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : C]?]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B?]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B?]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[[B]]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[[B : C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B]]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : C?]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : [C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : [C : D]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [[B : C]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B]]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C]?]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C : D]?]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : C?]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C?]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [[C]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [[C : D]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C : D?]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C : [D]]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C, D>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : [C : D]]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable, C : Hashable, D : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B, C>(json: Any, keyPath: OptionalKeyPath) throws -> [A : [B : C]]? where A : Decodable, A : Hashable, B : Decodable, B : Hashable, C : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A, B>(json: Any, keyPath: OptionalKeyPath) throws -> [A : B]? where A : Decodable, A : Hashable, B : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing. -
Retrieves the object at
path
fromjson
and decodes it according to the return typeThrows
DecodingError.typeMismatch,
.other(error, metadata)or possible
.missingKeyError` on required keysDeclaration
Swift
public func =>? <A>(json: Any, keyPath: OptionalKeyPath) throws -> A? where A : Decodable
Parameters
json
An object from NSJSONSerialization, preferably a
NSDictionary
.path
KeyPath
– can be appended using with=>
or=>?
Return Value
nil
if the object atpath
isNSNull
or if any optional key is missing.
-
Undocumented
Declaration
Swift
public func parse<T>(_ json: Any, keyPath: KeyPath, decoder: ((Any) throws -> T)) throws -> T
-
Undocumented
Declaration
Swift
public func parse<T>(_ json: Any, keyPath: OptionalKeyPath, decoder: ((Any) throws -> T?)) throws -> T?