Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

method libtmux-go latest

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.MarshalJSON
Package
tmux
Declared in
Snapshot
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/marshal.go
func (s Snapshot) MarshalJSON() ([]byte, error)
Esc

Type to search.

Reference previewOpen reference