{"modulePath":"github.com/context-dot-dev/context-dev-cli","version":"v1.28.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package jsonview\n\n## Functions\n\n```go\nfunc ExploreJSON(title string, json gjson.Result) error\n```\nExploreJSON explores a single JSON value known ahead of time\n\n```go\nfunc ExploreJSONStream[T any](title string, it Iterator[T]) error\n```\nExploreJSONStream explores JSON data loaded incrementally via an iterator\n\n```go\nfunc RenderJSON(title string, json gjson.Result) string\n```\n\n## Types\n\n```go\ntype AnyIterator interface {\n\tNext() bool\n\tErr() error\n\tCurrent() any\n}\n```\nAn iterator over \\`any\\` values\n\n```go\ntype Iterator[T any] interface {\n\tNext() bool\n\tErr() error\n\tCurrent() T\n}\n```\nA generic iterator interface that is used by the \\`genericIterator\\` struct below to convert iterators over specific types to an AnyIterator\n\n```go\ntype JSONView interface {\n\tGetPath() string\n\tGetData() gjson.Result\n\tUpdate(tea.Msg, bool) tea.Cmd\n\tView() string\n\tResize(width, height int)\n}\n```\n\n```go\ntype JSONViewer struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (v *JSONViewer) Init() tea.Cmd\n```\n\n```go\nfunc (v *JSONViewer) Update(msg tea.Msg) (tea.Model, tea.Cmd)\n```\n\n```go\nfunc (v *JSONViewer) View() string\n```\n\n```go\ntype TableView struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (tv *TableView) GetData() gjson.Result\n```\n\n```go\nfunc (tv *TableView) GetPath() string\n```\n\n```go\nfunc (tv *TableView) Resize(width, height int)\n```\n\n```go\nfunc (tv *TableView) Update(msg tea.Msg, raw bool) tea.Cmd\n```\n\n```go\nfunc (tv *TableView) View() string\n```\n\n```go\ntype TextView struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (tv *TextView) GetData() gjson.Result\n```\n\n```go\nfunc (tv *TextView) GetPath() string\n```\n\n```go\nfunc (tv *TextView) Resize(width, height int)\n```\n\n```go\nfunc (tv *TextView) Update(msg tea.Msg, raw bool) tea.Cmd\n```\n\n```go\nfunc (tv *TextView) View() string\n```\n\n","path":"github.com/context-dot-dev/context-dev-cli/internal/jsonview","name":"jsonview","synopsis":"","isRedistributable":true}
