# LibTmux.Query.Json.QueryJson.Deserialize

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

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

Reads one v1 JSON document.

## Parameters

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

## Returns

The decoded document.

## Raises

- `System.Text.Json.JsonException`: The text is not JSON.
- `UnsupportedQueryExpressionException`: The text is JSON, but not a v1 wire form: an unknown schema, version,
target, node or constant, a duplicate or unknown member, or a value past
one of the v1 limits.
