Subscripts
The following subscripts are available globally.
-
Retrieves a value from the dictionary using the given
JSONKey
.Note
Whenever the
Dictionary.Key
generic type is notString
,nil
is always returned.Declaration
Swift
public subscript(key: JSONKey)
Parameters
key
The key whose associated value is to be retrieved.
Return Value
The dictionary value associated with
key
, ornil
if no such value exists.