# libtmux.query.decode_json

- **Module:** libtmux.query
- **Package:** libtmux
- **Language:** Lua
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lua/blob/547c9c4228e07ebf846690eb44da2eeeb6fde922/lua/libtmux/query.lua#L25
- **Page:** https://libtmux.org/en/lua/latest/reference/libtmux-query-decode_json/

```
libtmux.query.decode_json(schema: libtmux.QuerySchema, text: string, codec: table) -> libtmux.Where?, libtmux.QueryError?
```

Decode and validate a complete JSON query; never evaluate received code.

## Parameters

- `schema` (libtmux.QuerySchema)
- `text` (string)
- `codec` (table): A trusted lunajson-compatible encoder and SAX parser.
