<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/JSONDecoder/KeyDecodingStrategy-swift.enum/useDefaultKeys",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation11JSONDecoderC19KeyDecodingStrategyO14useDefaultKeysyA2EmF"
  },
  "title" : "JSONDecoder.KeyDecodingStrategy.useDefaultKeys"
}
-->

# JSONDecoder.KeyDecodingStrategy.useDefaultKeys

A key decoding strategy that doesn’t change key names during decoding.

```
case useDefaultKeys
```

## Discussion

The [`JSONDecoder.KeyDecodingStrategy.useDefaultKeys`](/documentation/Foundation/JSONDecoder/KeyDecodingStrategy-swift.enum/useDefaultKeys) strategy is the strategy used if you don’t specify one.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)