# LibTmux::Workspace::from_json

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

- **Module:** LibTmux
- **Package:** LibTmux-Workspace
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/workspace/lib/LibTmux/Workspace.pm#L146
- **Page:** https://libtmux.org/en/perl/latest/workspace/reference/libtmux-workspace-from_json/

```
sub from_json($class, $json)
```

Decode bounded UTF-8 JSON octets with core [JSON::PP](https://perldoc.perl.org/5.44.0/JSON::PP) and call [`"new"`](/en/perl/latest/workspace/reference/libtmux-workspace-new/). Reject unsupported versions, unknown keys, invalid commands, and duplicate names. YAML is not part of this distribution.

## Methods

## Parameters

- `json`
