#json #interactive #explorer #cli

app jx

An interactive JSON explorer for the command line

6 releases

new 0.3.5 Feb 1, 2025
0.3.4 Jan 28, 2025
0.2.0 Jan 23, 2025
0.1.0 Sep 14, 2023

#235 in Command line utilities

Download history 92/week @ 2025-01-17 316/week @ 2025-01-24

408 downloads per month

Unlicense

41KB
1K SLoC

jx

Crates.io

jx example.json                              # open a JSON file directly
curl example.com/some-json-endpoint | jx     # ...or pipe it in

Installation

cargo install jx

Usage

Key Action
H Show help.
q Ctrl+c Quit.
j k Next/Previous node.
h l In/Out node.
y e Scroll one line up/down.
u d Scroll half page up/down.
b f Scroll full page up/down.
g Go to first line.
G Go to last line.
Space Toggle a fold.
s Sort selected.
S Sort selected reversed.
/ Search.
? Search backward.
n Repeat previous search.
N Repeat previous search in reverse.
& Filter.
Esc Clear search/filter.
c Ctrl+Shift+C Copy the selection (pretty).
C Copy the value (pretty).
r Copy the selection (raw).
R Copy the value (raw).
Enter Output the selection (pretty).
Shift+Enter Output the value (pretty).
o Output the selection (raw).
O Output the value (raw).
# Toggle line numbers.
w Toggle line wrapping.

Features

  • Navigation.
  • Copy selection or value to clipboard.
  • Output selection or value to console.
  • Pretty-printing.
  • Searching.
  • Filtering.
  • Sorting.
  • Scrolling.
  • Folding.
  • Syntax highlighting.
  • Multiple files.
  • Broken files.
  • Line numbers.
  • Line wrapping.

Dependencies

~5–17MB
~243K SLoC