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
-
Declaration
Swift
public init(stringLiteral value: StringLiteralType)
-
Declaration
Swift
public init(extendedGraphemeClusterLiteral value: StringLiteralType)
-
Declaration
Swift
public init(unicodeScalarLiteral value: StringLiteralType)
-
Declaration
Swift
public init(integerLiteral value: IntegerLiteralType)
-
Declaration
Swift
public init(booleanLiteral value: BooleanLiteralType)
-
Declaration
Swift
public init(floatLiteral value: FloatLiteralType)
-
Declaration
Swift
public init(dictionaryLiteral elements: (String, Any)...)
-
Declaration
Swift
public init(arrayLiteral elements: Any...)
-
Declaration
Swift
public init(nilLiteral: ())
-
Declaration
Swift
public init?(rawValue: Any)
-
Declaration
Swift
public var rawValue: Any
-
Undocumented
-
Undocumented
-
Declaration
Swift
public var description: String
-
Declaration
Swift
public var debugDescription: String
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented