# LibTmux.Filter.from_json/3

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Elixir
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-elixir/blob/5bacf40788b43a5af27bb3656e727a921ba2db40/lib/libtmux/filter.ex#L146
- **Page:** https://libtmux.org/en/elixir/pr-173/reference/libtmux-filter-from_json-3/

```
from_json(entity, json, options \\ [])
@spec from_json(
        LibTmux.Schema.entity_selector(),
        binary(),
        [limit_option()]
      ) ::
        {:ok, t()} | {:error, LibTmux.Error.t()}
```

Decodes bounded JSON, rejecting duplicate object keys and trailing data.

See the [worked example](api-examples.html#local-graph-and-filtering).

## Parameters

- `entity` (`LibTmux.Schema.entity_selector()`)
- `json` (`binary()`)
- `options` (`[limit_option()]`)
  Default: `[]`.

## Guides

Pages that discuss `from_json/3`.

- [Filter captured values](/en/elixir/pr-173/guides/filtering/)
