# tmux.WindowFilter.UnmarshalJSON

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

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

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