# Libtmux_json.Workspace.of_string

**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#L42
- **Public owner:** Libtmux_json
- **Page:** https://libtmux.org/en/ocaml/latest/workspace/reference/libtmux_json-workspace-of_string/

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

Decode `libtmux.workspace/1` with the query codec's 64 KiB, UTF-8 and 32-level JSON bounds. Reject duplicate and unknown properties, invalid argv/shell combinations and configuration errors. `directory` is the absolute document directory; these functions perform no filesystem I/O.

## Parameters

- `directory` (`string`)
- `arg1` (`string`)

## Guides

Pages that discuss `of_string`.

- [Workspace guide](/en/ocaml/latest/workspace/source-guide/)
