Instance Property

keyEncodingStrategy

A value that determines how a type's coding keys are encoded as JSON keys.

Declaration

var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy

See Also

Customizing Encoding

var outputFormatting: JSONEncoder.OutputFormatting

A value that determines the readability, size, and element order of the encoded JSON object.

struct JSONEncoder.OutputFormatting

The output formatting options that determine the readability, size, and element order of an encoded JSON object.

enum JSONEncoder.KeyEncodingStrategy

The values that determine how a type's coding keys are encoded as JSON keys.

var userInfo: [CodingUserInfoKey : Any]

A dictionary you use to customize the encoding process by providing contextual information.