jx 0.6.0

An interactive JSON explorer for the command line
jx-0.6.0 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
qC-c Quit
j / k Next/Previous
h / l In/Out
C-y / C-e Scroll line up/down
u / d Scroll half page up/down
b / f Scroll full page up/down
g / G Go to top/bottom
< / > Scroll left/right
SpaceEnter Toggle a fold
z Toggle all folds
/ Search
n / N Go to next/previous search match
Esc Clear search
y / Y Copy the selection/value (pretty)
A-y / A-Y Copy the selection/value (raw)
o / O Output the selection/value (pretty)
A-o / A-O Output the selection/value (raw)
# Toggle line numbering
w Toggle line wrapping