Classes
The following classes are available globally.
-
A wrapper around a JSON object that conveniently returns parsed objects or adds complex objects into the JSON object.
Basic example of returning objects:
let jsonString = // Source of JSON string let map = Map(jsonString: jsonString, encoding: .utf8) let string: String = try map.value("some_key")
Basic example of adding objects:
See morelet map = Map() map.add("some string", for: "some_key") let jsonString = map.jsonString(encoding: .utf8)
Declaration
Swift
public class Map