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

# decode(_:from:configuration:)

## Declaration

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