Array

struct Array<Element> : RandomAccessCollection, MutableCollection
  • Initialize Array from a JSON String

    Declaration

    Swift

    public init?(JSONString: String, context: MapContext? = nil)
  • Initialize Array from a JSON Array

    Declaration

    Swift

    public init?(JSONArray: [[String: Any]], context: MapContext? = nil)
  • Returns the JSON Array

    Declaration

    Swift

    public func toJSON() -> [[String: Any]]
  • Returns the JSON String for the object

    Declaration

    Swift

    public func toJSONString(prettyPrint: Bool = false) -> String?