Encodable

extension Encodable
  • Converts an instance of Self to JSON.

    Throws

    Encoding errors that occur when encoding Self to JSON.

    Declaration

    Swift

    public func json() throws -> JSON

    Return Value

    The JSON representation of Self.