# tmux.SessionFilter.UnmarshalJSON

- **Module:** tmux.SessionFilter
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/filter_generated.go#L3446
- **Page:** https://libtmux.org/reference/go/tmux-sessionfilter-unmarshaljson/

```
tmux.SessionFilter.UnmarshalJSON(data: []byte) -> error
```

UnmarshalJSON clears the receiver, strictly decodes a session filter, then validates it. Unknown or duplicate fields, trailing data, and semantic failures wrap [ErrInvalidFilter]; the receiver may retain decoded state on error.
