jx 0.5.8

An interactive JSON explorer for the command line
jx-0.5.8 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

You can download a binary directly from the releases page, or run one of the following.

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

Windows

powershell -ExecutionPolicy ByPass -c "irm https://github.com/sqwxl/jx/releases/latest/download/jx-installer.ps1 | iex"

Cargo

cargo install jx

Usage

Key Action
? 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.
< Scroll left.
> Scroll right.
Space Toggle a fold.
/ Search.
n Repeat previous search.
N Repeat previous search in reverse.
Esc Clear search.
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).
w Toggle line wrapping.

Features

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