Initializerorlandos-nl.ikigajson 2.2.3IkigaJSON
init(buffer:)
Parses the buffer as a JSON Object and configures this JSONObject to index and represent the JSON data
JSONObject.swift:97init(buffer: ByteBuffer) throws
Other members in extension
Type members
init(
) Creates a new, empty JSONObject
init(data: Data
) throws Parses the data as a JSON Object and configures this JSONObject to index and represent the JSON data
init(dictionaryLiteral: (String, JSONValue)...
) Creates a new JSONObject from a dictionary literal.
init?(json: JSONValue?
) static func == (lhs: JSONObject, rhs: JSONObject
) -> Bool
Instance members
var data: Data
A textual (JSON formatted) representation of this JSONObject as
Foundation.Data
var jsonBuffer: ByteBuffer
The raw textual (JSON formatted) representation of this JSONObject
var keys: [String]
A list of all top-level keys within this JSONObject
var string: String!
A JSON formatted String with the contents of this JSONObject
subscript(String
) -> JSONValue? Reads and writes the properties of this JSONObject by key.
func makeIterator(
) -> JSONObjectIterator func updateValue(JSONValue?, forKey: String
) -> Bool Updates a key to a new value. If
nil
is provided, the value will be removed.