# Libtmux_json.Expr.encode

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

```
val encode :
  'a Libtmux.Model.t ->
  'a Libtmux.Expr.t -> (Yojson.Safe.t, Decode_error.t) result
```

## Parameters

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