ATJSON

Undocumented

  • Creates a JSON using the data.

    Declaration

    Swift

    public init(data:Data, options opt: JSONSerialization.ReadingOptions = .allowFragments, error: NSErrorPointer? = nil)
  • Create a JSON from JSON string - parameter string: Normal json string like ‘{a:b}’

    Declaration

    Swift

    public static func parse(_ string:String) -> ATJSON
  • Creates a JSON using the object.

    Declaration

    Swift

    public init(_ object: Any)
  • Creates a JSON from a [JSON]

    Declaration

    Swift

    public init(_ jsonArray:[ATJSON])
  • Creates a JSON from a [String: JSON]

    Declaration

    Swift

    public init(_ jsonDictionary:[String: ATJSON])
  • Object in JSON

    Declaration

    Swift

    public var object: Any
  • json type

    Declaration

    Swift

    public var type: Type
  • Error in JSON

    Declaration

    Swift

    public var error: NSError?
  • Undocumented

  • The static null json

    Declaration

    Swift

    public var startIndex: Index
  • The static null json

    Declaration

    Swift

    public var endIndex: Index
  • The static null json

    Declaration

    Swift

    public func index(after i: Index) -> Index
  • Find a json in the complex data structuresby using the Int/String’s array.

    let json = JSON[data] let path = [9,list,person,name] let name = json[path]

    The same as: let name = json[9][list][person][name]

    Declaration

    Swift

    public subscript(path: [JSONSubscriptType]) -> ATJSON
  • Find a json in the complex data structures by using the Int/String’s array.

    let name = json[9,list,person,name]

    The same as: let name = json[9][list][person][name]

    Declaration

    Swift

    public subscript(path: JSONSubscriptType...) -> ATJSON
  • URL

    Undocumented