Skip to content
ratranqu edited this page Apr 26, 2021 · 2 revisions

JSON

public enum JSON : Codable 

Inheritance

Codable, CustomStringConvertible

Initializers

init?(_:)

public init?(_ value: Any?) 

init(from:)

public init(from decoder: Decoder) throws 

Enumeration Cases

null

case null

boolean

case boolean(Bool)

integer

case integer(Int)

double

case double(Double)

string

case string(String)

array

case array([JSON])

object

case object([String: JSON])

Properties

value

public var value: Any? 

description

public var description: String 

Methods

encode(to:)

public func encode(to encoder: Encoder) throws 
Types
Protocols
Global Typealiases
Global Variables
Global Functions
Extensions
Clone this wiki locally