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 not String, 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, or nil if no such value exists.