JSONKey

public struct JSONKey

Allows keys to be declared statically at compile-time, enabling them to be referenced in a non-stringly way.

  • key

    The StaticString used to declare the JSONKey at compile-time.

    Declaration

    Swift

    public let key: StaticString
  • A String representation of the JSONKey.

    Declaration

    Swift

    public let rawValue: String
  • Constructs a new JSONKey using the given key.

    Declaration

    Swift

    public init(_ key: StaticString)