# Libtmux_json.Workspace.decode

**Workspace Manager concept example** A working example of the core library. It can change without notice.

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

```
val decode :
  directory:string ->
  Yojson.Safe.t -> (Libtmux_workspace.Config.t, Decode_error.t) result
```

## Parameters

- `directory` (`string`)
- `arg1` (`Yojson.Safe.t`)
