LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

jnv

interactive JSON viewer and jq filter editor

TLDR

Open a JSON file for interactive filtering
$ jnv [path/to/data.json]
copy
Filter JSON from stdin
$ cat [path/to/data.json] | jnv
copy
Open with a default filter applied
$ jnv --default-filter '.[0]' [path/to/data.json]
copy
Use a custom configuration file
$ jnv -c [path/to/config.toml] [path/to/data.json]
copy
Write the filtered result to stdout on exit
$ jnv --write-to-stdout [path/to/data.json]
copy

SYNOPSIS

jnv [OPTIONS] [INPUT]

DESCRIPTION

jnv is an interactive JSON viewer and jq filter editor. It provides a split-pane interface with a filter editor at the top and a syntax-highlighted JSON view below that updates in real time as you type your jq filter. Inspired by jid and jiq, jnv uses jaq internally to apply filters, eliminating the need to install jq separately.The tool supports JSON files and JSON Lines input, configurable UI through TOML configuration, hint message toggling, and adjustable reactivity including debounce times.

PARAMETERS

INPUT

Path to a JSON file. If omitted or "-", reads from stdin.
-c, --config file
Path to a TOML configuration file.
--default-filter filter
Default jq filter to apply to input data.
--write-to-stdout
Write the current JSON result to stdout when exiting.
-h, --help
Print help information.
-V, --version
Print version.

INSTALL

sudo pacman -S jnv
copy
brew install jnv
copy
nix profile install nixpkgs#jnv
copy

CAVEATS

Uses jaq (not jq) internally, so some advanced jq features or edge cases may behave differently. Large JSON files may impact responsiveness of the live preview. Supports JSON and JSON Lines input.

HISTORY

jnv was created by ynqa and is written in Rust. It was designed to provide a more polished and self-contained interactive JSON exploration experience compared to earlier tools like jid and jiq.

SEE ALSO

jq(1), jaq(1), fx(1), jiq(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid