# Sandbox.Json.TryDeserialize

## Overload 1

```csharp
static bool TryDeserialize(string source, System.Type t, out object obj)
```

Try to deserialize given source to given type. Return true if it was a success

### Parameters

- `source` (`string`)
- `t` (`System.Type`)
- `out obj` (`object`)

### Returns

`bool`

## Overload 2

```csharp
static bool TryDeserialize(string source, out T obj)
```

Try to deserialize given source to given type. Return true if it was a success

### Parameters

- `source` (`string`)
- `out obj` (`T`)

### Returns

`bool`

Declared in [Sandbox.Json](/api/Sandbox.Json).
Assembly: `Sandbox.Engine`.
