Skip to content

Instance Property

keyEncodingStrategy

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
A value that determines how to encode a type’s coding keys as JSON keys.
var keyEncodingStrategy: JSONEncoder.KeyEncodingStrategy { get set }

Discussion

Defaults to .useDefaultKeys.