JSONKey
public struct JSONKey
Allows keys to be declared statically at compile-time, enabling them to be
referenced in a non-stringly
way.
-
The
StaticStringused to declare theJSONKeyat compile-time.Declaration
Swift
public let key: StaticString -
A
Stringrepresentation of theJSONKey.Declaration
Swift
public let rawValue: String -
Constructs a new
JSONKeyusing the given key.Declaration
Swift
public init(_ key: StaticString)
View on GitHub
JSONKey Struct Reference