# Libtmux_json.Expr.to_string

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

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

Apply the same bounds and subset when encoding. Text with invalid UTF-8 has no representation in this schema. These functions perform no I/O.

## Parameters

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