Snapshot.MarshalJSON
MarshalJSON encodes the snapshot's tmux version and the records it holds. A kind it listed encodes as an array, empty when tmux reported none; a kind it never listed is absent. Those are different answers, and one field cannot spell both, which is why the arrays are pointers here. Nothing decodes; see Session.MarshalJSON.
Source and package
- Qualified name
-
tmux.Snapshot. Marshal JSON - Package
- tmux
- Declared in
Snapshot- Distribution
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/marshal.go