JSON

@dynamicMemberLookup
public struct JSON
extension JSON: Swift.Collection
extension JSON: Swift.ExpressibleByStringLiteral
extension JSON: Swift.ExpressibleByIntegerLiteral
extension JSON: Swift.ExpressibleByBooleanLiteral
extension JSON: Swift.ExpressibleByFloatLiteral
extension JSON: Swift.ExpressibleByDictionaryLiteral
extension JSON: Swift.ExpressibleByArrayLiteral
extension JSON: Swift.RawRepresentable
extension JSON: Swift.CustomStringConvertible, Swift.CustomDebugStringConvertible
extension JSON: Swift.Comparable
extension JSON: Codable

JSON

  • Undocumented

    Declaration

    Swift

    public init(data: Data, options opt: JSONSerialization.ReadingOptions = []) throws
  • Undocumented

    Declaration

    Swift

    public init(_ object: Any)
  • Undocumented

    Declaration

    Swift

    public init(parseJSON jsonString: String)
  • Undocumented

    Declaration

    Swift

    public mutating func merge(with other: JSON) throws
  • Undocumented

    Declaration

    Swift

    public func merged(with other: JSON) throws -> JSON
  • Undocumented

    Declaration

    Swift

    public fileprivate(set) var type: JSONType { get }
  • Undocumented

    Declaration

    Swift

    public fileprivate(set) var error: JSONError? { get }
  • Undocumented

    Declaration

    Swift

    public var object: Any { get set }
  • Undocumented

    Declaration

    Swift

    public static var null: JSON { get }

Index

Subscript

Dynamic

LiteralConvertible

Raw

  • Declaration

    Swift

    public init?(rawValue: Any)
  • Declaration

    Swift

    public var rawValue: Any { get }
  • Undocumented

    Declaration

    Swift

    public func rawData(options opt: JSONSerialization.WritingOptions = JSONSerialization.WritingOptions(rawValue: 0)) throws -> Data
  • Undocumented

    Declaration

    Swift

    public func rawString(_ encoding: String.Encoding = .utf8, options opt: JSONSerialization.WritingOptions = .prettyPrinted) -> String?
  • Undocumented

    Declaration

    Swift

    public func rawString(_ options: [JSONWritingOptionsKeys : Any]) -> String?

Printable

  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }

Array

  • Undocumented

    Declaration

    Swift

    public var array: [JSON]? { get }
  • Undocumented

    Declaration

    Swift

    public var arrayValue: [JSON] { get }
  • Undocumented

    Declaration

    Swift

    public var arrayObject: [Any]? { get set }

Dictionary

  • Undocumented

    Declaration

    Swift

    public var dictionary: [String : JSON]? { get }
  • Undocumented

    Declaration

    Swift

    public var dictionaryValue: [String : JSON] { get }
  • Undocumented

    Declaration

    Swift

    public var dictionaryObject: [String : Any]? { get set }

Bool

  • Undocumented

    Declaration

    Swift

    public var bool: Bool? { get set }
  • Undocumented

    Declaration

    Swift

    public var boolValue: Bool { get set }

String

  • Undocumented

    Declaration

    Swift

    public var string: String? { get set }
  • Undocumented

    Declaration

    Swift

    public var stringValue: String { get set }

Number

  • Undocumented

    Declaration

    Swift

    public var number: NSNumber? { get set }
  • Undocumented

    Declaration

    Swift

    public var numberValue: NSNumber { get set }

Null

  • Undocumented

    Declaration

    Swift

    public var null: NSNull? { get set }
  • Undocumented

    Declaration

    Swift

    public func exists() -> Bool

URL

  • url

    Undocumented

    Declaration

    Swift

    public var url: URL? { get set }

Digital

  • Undocumented

    Declaration

    Swift

    public var double: Double? { get set }
  • Undocumented

    Declaration

    Swift

    public var doubleValue: Double { get set }
  • Undocumented

    Declaration

    Swift

    public var float: Float? { get set }
  • Undocumented

    Declaration

    Swift

    public var floatValue: Float { get set }
  • int

    Undocumented

    Declaration

    Swift

    public var int: Int? { get set }
  • Undocumented

    Declaration

    Swift

    public var intValue: Int { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt: UInt? { get set }
  • Undocumented

    Declaration

    Swift

    public var uIntValue: UInt { get set }
  • Undocumented

    Declaration

    Swift

    public var int8: Int8? { get set }
  • Undocumented

    Declaration

    Swift

    public var int8Value: Int8 { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt8: UInt8? { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt8Value: UInt8 { get set }
  • Undocumented

    Declaration

    Swift

    public var int16: Int16? { get set }
  • Undocumented

    Declaration

    Swift

    public var int16Value: Int16 { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt16: UInt16? { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt16Value: UInt16 { get set }
  • Undocumented

    Declaration

    Swift

    public var int32: Int32? { get set }
  • Undocumented

    Declaration

    Swift

    public var int32Value: Int32 { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt32: UInt32? { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt32Value: UInt32 { get set }
  • Undocumented

    Declaration

    Swift

    public var int64: Int64? { get set }
  • Undocumented

    Declaration

    Swift

    public var int64Value: Int64 { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt64: UInt64? { get set }
  • Undocumented

    Declaration

    Swift

    public var uInt64Value: UInt64 { get set }

JSON: Codable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws