---
title: "decode(_:from:configuration:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/jsondecoder/decode(_:from:configuration:)-22lge"
---

# decode(_:from:configuration:)

## Declaration

```swift
func decode<T, C>(_ type: T.Type, from data: Data, configuration: C.Type) throws -> T where T : DecodableWithConfiguration, C : DecodingConfigurationProviding, T.DecodingConfiguration == C.DecodingConfiguration
```
