Skip to content

Protocol

PostgresJSONEncoder

A protocol that mimics the Foundation JSONEncoder.encode(_:) function. Conform a non-Foundation JSON encoder to this protocol if you want PostgresNIO to be able to use it when encoding JSON & JSONB values (see PostgresNIO._defaultJSONEncoder).
@preconcurrency protocol PostgresJSONEncoder : Sendable

Topics

Instance Methods

Relationships

Inherits From

  • Swift.Sendable
  • Swift.SendableMetatype

Conforming Types

  • JSONEncoder

See Also

JSON

  • PostgresJSONDecoder
    A protocol that mimics the Foundation JSONDecoder.decode(_:from:) function. Conform a non-Foundation JSON decoder to this protocol if you want PostgresNIO to be able to use it when decoding JSON & JSONB values (see PostgresNIO._defaultJSONDecoder).