# Sandbox.Json.Deserialize

## Overload 1

```csharp
static object Deserialize(string source, System.Type t)
```

Try to deserialize given source to given type.

### Parameters

- `source` (`string`)
- `t` (`System.Type`)

### Returns

`object`

## Overload 2

```csharp
static T Deserialize(string source)
```

Try to deserialize given source to given type.

### Parameters

- `source` (`string`)

### Returns

`T`

## Overload 3

```csharp
static T Deserialize(ref System.Text.Json.Utf8JsonReader reader)
```

Deserialize from a Utf8JsonReader to given type, using our engine specific options.

### Parameters

- `ref reader` (`System.Text.Json.Utf8JsonReader`)

### Returns

`T`

## Overload 4

```csharp
static object Deserialize(ref System.Text.Json.Utf8JsonReader reader, System.Type t)
```

Deserialize from a Utf8JsonReader to given type, using our engine specific options.

### Parameters

- `ref reader` (`System.Text.Json.Utf8JsonReader`)
- `t` (`System.Type`)

### Returns

`object`

Declared in [Sandbox.Json](/api/Sandbox.Json).
Assembly: `Sandbox.Engine`.
