Enumeration

JSONEncoder.DataEncodingStrategy

The strategies for encoding raw data.

Declaration

enum JSONEncoder.DataEncodingStrategy

Topics

Base64 Encoding

case base64

The strategy that encodes data using Base 64 encoding.

Custom Encoding

case custom((Data, Encoder) -> Void)

The strategy that encodes data using a user-defined function.

Data Encoding

case deferredToData

The strategy that encodes data using the encoding specified by the data instance itself.

See Also

Encoding Raw Data

var dataEncodingStrategy: JSONEncoder.DataEncodingStrategy

The strategy that an encoder uses to encode raw data.