jx 0.5.13

An interactive JSON explorer for the command line
jx-0.5.13 is not a library.

jx

crates.io

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

Installation

Homebrew

brew install sqwxl/tap/jx

Linux / macOS

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/sqwxl/jx/releases/latest/download/jx-installer.sh | sh

Install from source

cargo install --path .

Usage

Key Action
? Show help
q Ctrl+c Quit
jDown/kUp Next/Previous node
hLeft/lRight In/Out node
Ctrl+y Ctrl+e Scroll line up/down
u d Scroll half page up/down
b f Scroll full page up/down
g Go to top
G Go to bottom
< Scroll left
> Scroll right
Space Toggle a fold
z Toggle all folds
/ Search
n Repeat previous search
N Repeat previous search in reverse
Esc Clear search
y Copy the selection (pretty)
r Copy the selection (raw)
Y Copy the value (pretty)
R Copy the value (raw)
Enter Output the selection (pretty)
o Output the selection (raw)
Shift+Enter Output the value (pretty)
O Output the value (raw)
w Toggle line wrapping
# Toggle line numbering

Features

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