Gem

jless

A terminal JSON viewer: collapse and expand nodes, move with vim keys, search with regex.

Would you recommend jless?

No votes yet. Tried it? Be the first to say.

One vote per person. No account needed.

Overview

jless is for reading JSON, not transforming it. Pipe a large API response or log file into it and you get a clean, syntax-highlighted tree without the quotes on keys, closing brackets or trailing commas. Collapse and expand objects and arrays, move around with vim-style keys, search with regular expressions, and copy a value or its path to the clipboard. It's a single Rust binary.

Instead of
`cat response.json | jq . | less`, and opening a 40 MB JSON file in your editor just to look at it
Reach for it when
You need to explore a big or unfamiliar JSON document and find where something lives before writing the jq filter.

Try it in a few minutes

Terminal
brew install jless   # or: cargo install jless
curl -s https://api.github.com/repos/PaulJuliusMartinez/jless | jless
# space toggles a node, / searches, yp copies the path

Related tools

Other tools that share topics with jless.

Hurl

hurl.dev
Gem

Run and test HTTP requests written in plain-text files.

Instead of Postman collections, curl-and-jq shell scripts, or hand-written API test code

1 recommend

Jujutsu

jj-vcs.dev
Gem

A Git-compatible version control system where your working copy is always a commit and every operation can be undone.

Instead of The git CLI, interactive rebase and git stash

jq

jqlang.org
Gem

Slice, filter and reshape JSON on the command line.

Instead of Ad-hoc Python or Node scripts, and grep/sed on JSON (which breaks as soon as the formatting changes)