JSONString

public struct JSONString : Equatable

Type representing an optional JSON string.

  • The JSON string value, an empty string denotes a nil object.

    Declaration

    Swift

    public var value: String
  • The decoded JSON object.

    Declaration

    Swift

    public var object: [String : Any]? { get set }
  • Declaration

    Swift

    public init(jsonString: String)
  • Declaration

    Swift

    public init(jsonObject: [String : Any])
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws