jnv combines a JSON tree viewer with an embedded jq filter editor. It reads files or stdin, highlights syntax, suggests jq expressions, and loads settings from a TOML config file.
Overview
jnv is built for exploring JSON interactively while editing jq filters in the same terminal UI. It accepts a file, stdin, JSON Lines, or multiple JSON values in one stream.
An editor mode provides jq auto-completion for identifiers, indexes, and array positions, plus hints that evaluate the current filter. A separate viewer mode folds and unfolds nodes, moves through the tree, and copies JSON or filters to the clipboard.
Configuration uses TOML at platform-specific default paths on Linux, macOS, and Windows, or a path you pass with --config. Options cover debounce timing, keybindings, hint display, and viewer styling.
You can install jnv via Homebrew, MacPorts, Nix, conda-forge, Cargo, or a Docker image build.
Key features
- Interactive JSON viewer and jq editor modes
- jq filter auto-completion and hints
- JSON Lines and multi-document input
- TOML-based user configuration
- Clipboard copy for JSON and filters
- Syntax highlighting for JSON text
Use cases
- Prototype jq queries against log files
- Browse Kubernetes JSON output interactively
- Filter API responses without leaving the terminal