JSONValue
public indirect enum JSONValue
extension JSONValue: Codable
JSON値を表す列挙型です。
-
nil
Declaration
Swift
case none
-
文字列型
Declaration
Swift
case string(String)
-
ブール型
Declaration
Swift
case bool(Bool)
-
符号つき整数型
Declaration
Swift
case int(Int)
-
符号つき整数型(8bit)
Declaration
Swift
case int8(Int8)
-
符号つき整数型(16bit)
Declaration
Swift
case int16(Int16)
-
符号つき整数型(32bit)
Declaration
Swift
case int32(Int32)
-
符号つき整数型(64bit)
Declaration
Swift
case int64(Int64)
-
符号なし整数型
Declaration
Swift
case uint(UInt)
-
符号なし整数型(8bit)
Declaration
Swift
case uint8(UInt8)
-
符号なし整数型(16bit)
Declaration
Swift
case uint16(UInt16)
-
符号なし整数型(32bit)
Declaration
Swift
case uint32(UInt32)
-
符号なし整数型(64bit)
Declaration
Swift
case uint64(UInt64)
-
浮動小数点型
Declaration
Swift
case double(Double)
-
浮動小数点型
Declaration
Swift
case float(Float)
-
浮動小数点型
Declaration
Swift
case cgfloat(CGFloat)
-
日付型
Declaration
Swift
case date(Date)
-
配列型
Declaration
Swift
case array([JSONValue])
-
辞書型
Declaration
Swift
case dictionary([String : JSONValue])
-
JSONConvertible
を返します。Declaration
Swift
public var rawValue: JSONConvertible { get }
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws