Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
J

jnv

> 云原生
Open source

Interactive JSON filter using jq

6.1K stars0 likes2 views
WebsiteGitHub

About

Interactive JSON filter using jq

> [!TIP] > For JSON and YAML tree browsing, subtree exploration, and side-by-side query results, try [vy](https://vy.ynqa.dev), another terminal tool by the author of jnv.

jnv is designed for navigating JSON, offering an interactive JSON viewer and jq filter editor.

Inspired by jid and jiq.

Features

  • Interactive JSON viewer and jq filter editor
    • Syntax highlighting for JSON
    • Use jaq to apply jq filter
      • This eliminates the need for users to prepare jq on their own
  • Configurable features via TOML configuration
    • Toggle hint message display
    • Adjust UI reactivity (debounce times and animation speed)
    • Editor appearance and behavior
    • JSON viewer styling
    • Adjust completion feature display and behavior
    • Keybinds
  • Capable of accommodating various format
    • Input: File, stdin
    • Data: A JSON or multiple JSON structures that can be deserialized with StreamDeserializer, such as JSON Lines
  • Auto-completion for the filter
    • Only supports:
      • Identity
      • Object Identifier-Index
      • Array Index
  • Hint message to evaluate the filter

Installation

Homebrew

See here for more info.

bash
brew install jnv

Or install via Homebrew Tap:

bash
brew install ynqa/tap/jnv

MacPorts

See here for more info.

bash
sudo port install jnv

Nix / NixOS

See package entry on search.nixos.org for more info.

bash
nix-shell -p jnv

conda-forge

See here for more info.

bash
pixi global install jnv
# or
cat data.json | pixi exec jnv
# or
conda install jnv

Docker

Build (In the near future, the image will be available on something of registries)

bash
docker build -t jnv .

And Run (The following commad is just an example. Please modify the path to the file you want to mount)

bash
docker run -it --rm -v $(pwd)/debug.json:/jnv/debug.json jnv /jnv/debug.json

Cargo

bash
cargo install jnv

Examples

bash
cat data.json | jnv

# or
jnv data.json

# or write current result to stdout on exit (UNIX only)
cat data.json | jnv --write-to-stdout | some-command
# and also output to file
cat data.json | jnv -- --write-to-stdout > result.json

Keymap

Key Action
Ctrl + C Exit
Ctrl + Q Copy jq filter to clipboard
Ctrl + O Copy JSON to clipboard
Shift + ↑, Shift + ↓ Switch to another mode

Editor mode (default)

Key Action
Tab Enter suggestion
← Move cursor left
→ Move cursor right
Ctrl + A Move cursor to line start
Ctrl + E Move cursor to line end
Backspace Delete character before cursor
Ctrl + U Clear entire line
Alt + B Move the cursor to the previous nearest character within set(.,|,(,),[,])
Alt + F Move the cursor to the next nearest character within set(.,|,(,),[,])
Ctrl + W Erase to the previous nearest character within set(.,|,(,),[,])
Alt + D Erase to the next nearest character within set(.,|,(,),[,])

Suggestion in Editor (after Tab)

Key Action
Tab, ↓ Select next suggestion
↑ Select previous suggestion
Others Return to editor

JSON viewer mode

Key Action
↑, Ctrl + K Move up
↓, Ctrl + J Move down
Ctrl + H Move to last entry
Ctrl + L Move to first entry
Enter Toggle fold
Ctrl + P Expand all
Ctrl + N Collapse all

Usage

…

Configuration

jnv uses a TOML format configuration file to customize various features. The configuration file is loaded in the following order of priority:

  1. Path specified on the command line (-c or --config option)
  2. Default configuration file path

Default Configuration File Location

Following the dirs crate, the default configuration file location for each platform is as follows:

  • Linux: ~/.config/jnv/config.toml
  • macOS: ~/Library/Application Support/jnv/config.toml
  • Windows: C:\Users\{Username}\AppData\Roaming\jnv\config.toml

If the configuration file does not exist, it will be automatically created on first run.

Configuration

[!IMPORTANT] The syntax in TOML configurations like default.toml was revamped in v0.7.0, and the configuration shown below reflects the new format. A migration tool is not provided for this change. Please manually replace/update your local config.toml to match the new syntax.

[!WARNING] Depending on the type of terminal and environment, characters and styles may not be displayed properly. Specific key bindings and decorative characters may not display or function correctly in certain terminal emulators.

The following settings are available in config.toml
…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustautocompleteclicommand-lineinteractive

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category云原生
PricingOpen source

> Related tools

K
Kubernetes
容器编排事实标准
H
Helm
Kubernetes 包管理器
S
seaweedfs
SeaweedFS is a distributed storage system for object storage (S3), file systems, and Iceberg tables,