JSONEncoder

    JSONEncoder facilitates the encoding of Encodable values into JSON.

    class JSONEncoder

    Citizens in Foundation

    Types

    Type members

    • init()

      Initializes self with default strategies.

    Instance members

    Extension in NIOFoundationCompat

    Instance members

    Extension in Basics

    Type members

    Instance members

    Extension in Vapor

    Conformances

    • protocol ContentEncoder

      Conform a type to this protocol to make it usable for encoding data via Vapor’s ContentConfiguration system.

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.

    Type members

    Instance members

    Instance features