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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software