JSONValue | iOS SDK | 2GIS Documentation

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
The value of the new instance.
public init(integerLiteral value: Int64)
Creates an instance initialized to the specified integer value.
Parameters
value
Int64
The 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
The 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
The decoder to read data from.
Methods
Properties