> ## Documentation Index
> Fetch the complete documentation index at: https://docs.crossmint.com/llms.txt
> Use this file to discover all available pages before exploring further.

# DefaultJSONCoder

> Swift Structure

**Structure**

```swift theme={null}
struct DefaultJSONCoder
```

## Initializers

### init()

```swift theme={null}
init()
```

## Instance Methods

### decode(\_:from:)

Inherited from `JSONCoder.decode(_:from:)`.

```swift theme={null}
func decode<T>(_ type: T.Type, from data: Data) throws(CrossmintServiceError) -> T where T : Decodable
```

### encode(\_:)

Inherited from `JSONCoder.encode(_:)`.

```swift theme={null}
func encode<T>(_ instance: T) throws(CrossmintServiceError) -> Data where T : Encodable
```
