Instance Property

dateEncodingStrategy

The strategy used when encoding dates as part of a JSON object.

Declaration

var dateEncodingStrategy: JSONEncoder.DateEncodingStrategy

Discussion

The default strategy is the JSONEncoder.DateEncodingStrategy.deferredToDate strategy.

See Also

Encoding Dates

enum JSONEncoder.DateEncodingStrategy

The formatting strategies available for formatting dates when encoding a date as JSON.