JSONValue | iOS SDK | Urbi Documentation
iOS SDK

JSONValue

public init(nilLiteral: ())
Creates an instance initialized with .
public init(booleanLiteral value: Bool)
Creates an instance initialized to the given Boolean value.
Parameters
value
Bool
Value of the new instance.
public init(integerLiteral value: Int64)
Creates an instance initialized to the specified integer value.
Parameters
value
Int64
Value to create.
public init(floatLiteral value: Double)
Creates an instance initialized to the specified floating-point value.
Parameters
value
Double
The value to create.
public init(stringLiteral value: String)
Creates an instance initialized to the given string value.
Parameters
value
String
Value of the new instance.
public init(arrayLiteral elements: JSONValue...)
Creates an instance initialized with the given elements.
Parameters
elements
public init(dictionaryLiteral elements: (String, JSONValue)...)
Creates an instance initialized with the given key-value pairs.
public init(from decoder: Decoder) throws
Creates a new instance by decoding from the given decoder.
Parameters
decoder
Decoder
Decoder to read data from.
Methods
Properties