JSONValue

public enum JSONValue : Codable

A type-erased JSON value that supports runtime metadata while preserving Codable support.

  • Undocumented

    Declaration

    Swift

    case string(String)
  • Undocumented

    Declaration

    Swift

    case integer(Int64)
  • Undocumented

    Declaration

    Swift

    case double(Double)
  • Undocumented

    Declaration

    Swift

    case bool(Bool)
  • Undocumented

    Declaration

    Swift

    case object([String : JSONValue])
  • Undocumented

    Declaration

    Swift

    case array([JSONValue])
  • Undocumented

    Declaration

    Swift

    case null
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Undocumented

    Declaration

    Swift

    public init(any value: Any) throws
  • Undocumented

    Declaration

    Swift

    public var anyValue: Any { get }