# Libtmux_json.Expr.of_string

- **Module:** Libtmux_json
- **Package:** libtmux-json
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/json/libtmux_json.mli#L83
- **Public owner:** Libtmux_json
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_json-expr-of_string/

```
val of_string :
  'a Libtmux.Model.t -> string -> ('a Libtmux.Expr.t, Decode_error.t) result
```

Enforce 64 KiB and 32 JSON nesting levels before parsing; require valid UTF-8 JSON. Expressions have at most 1,024 nodes and membership lists at most 256 values. Errors include a JSON pointer, never the whole input.

## Parameters

- `arg1` (`'a Libtmux.Model.t`)
- `arg2` (`string`)

## Guides

Pages that discuss `of_string`.

- [Share a scalar pane query](/en/ocaml/latest/guides/query-interchange/)
