InfoArray
public enum InfoArray : Encodable
extension InfoArray: CustomDebugStringConvertible
extension InfoArray: ExpressibleByNilLiteral
extension InfoArray: ExpressibleByBooleanLiteral
extension InfoArray: ExpressibleByIntegerLiteral
extension InfoArray: ExpressibleByFloatLiteral
extension InfoArray: ExpressibleByStringLiteral
extension InfoArray: ExpressibleByArrayLiteral
extension InfoArray: ExpressibleByDictionaryLiteral
A representation of an arbitrary JSON value.
This is a bit more useful than the naive [String:Any]
type for JSON values, since it makes sure
only valid JSON values are present.
-
Undocumented
Declaration
Swift
case null
-
Undocumented
Declaration
Swift
case bool(Bool)
-
Undocumented
Declaration
Swift
case int(Int)
-
Undocumented
Declaration
Swift
case double(Double)
-
Undocumented
Declaration
Swift
case string(String)
-
Undocumented
Declaration
Swift
case array([InfoArray])
-
Undocumented
Declaration
Swift
case object([String : InfoArray])
-
Create a JSON value from arbitrary type.
Declaration
Swift
public init(_ value: Any)
-
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public var debugDescription: String { get }
-
Declaration
Swift
public init(nilLiteral: ())
-
Declaration
Swift
public init(booleanLiteral value: Bool)
-
Declaration
Swift
public init(integerLiteral value: Int)
-
Declaration
Swift
public init(floatLiteral value: Double)
-
Declaration
Swift
public init(stringLiteral value: String)
-
Declaration
Swift
public init(arrayLiteral elements: InfoArray...)
-
Declaration
Swift
public init(dictionaryLiteral elements: (String, InfoArray)...)