Protocols

The following protocols are available globally.

  • A protocol used to define a path within an instance of JSON that leads to some desired value.

    A custom type, such as a RawRepresentable enum, may be made to conform to JSONPathType and used with the subscript APIs.

    See more

    Declaration

    Swift

    public protocol JSONPathType
  • Protocol describing a backend parser that can produce JSON from Data.

    See more

    Declaration

    Swift

    public protocol JSONParserType
  • A protocol to facilitate encoding and decoding of JSON.

    See more

    Declaration

    Swift

    public protocol JSONEncodable
  • A protocol to provide functionality for creating a model object with a JSON value.

    See more

    Declaration

    Swift

    public protocol JSONDecodable