---
title: keyDecodingStrategy
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/jsondecoder/keydecodingstrategy-swift.property
---

# keyDecodingStrategy

A value that determines how to decode a type’s coding keys from JSON keys.

## Declaration

```swift
var keyDecodingStrategy: JSONDecoder.KeyDecodingStrategy { get set }
```

## See Also

### Customizing Decoding

- [JSONDecoder.KeyDecodingStrategy](foundation/jsondecoder/keydecodingstrategy-swift.enum.md)
- [userInfo](foundation/jsondecoder/userinfo.md)
- [allowsJSON5](foundation/jsondecoder/allowsjson5.md)
- [assumesTopLevelDictionary](foundation/jsondecoder/assumestopleveldictionary.md)
