---
title: userInfo
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/jsondecoder/userinfo
---

# userInfo

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

## Declaration

```swift
@preconcurrency var userInfo: [CodingUserInfoKey : any Sendable] { get set }
```

## See Also

### Customizing Decoding

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