# LibTmux.Query.Json.QueryJson.Deserialize

- **Module:** LibTmux.Query.Json
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux.Query.Json/QueryJsonSerializerContext.cs#L100
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-query-json-queryjson-deserialize/

```
LibTmux.Query.Json.QueryJson.Deserialize(json: string, limits: QueryJsonLimits?) -> QueryDocument
```

Reads one versioned JSON document.

## Parameters

- `json` (`string`): The encoded document.
- `limits` (`QueryJsonLimits?`): Limits to apply, never wider than the defaults.

## Returns

The decoded document.

## Raises

- [`System.Text.Json.JsonException`](https://learn.microsoft.com/dotnet/api/system.text.json.jsonexception): The text is not JSON.
- [`UnsupportedQueryExpressionException`](/en/csharp/latest/reference/libtmux-unsupportedqueryexpressionexception/): The text is JSON, but not a supported wire form: an unknown schema, version,
target, node or constant, a duplicate or unknown member, or a value past
one of the document limits.
