HACKER Q&A
📣 slickrick216

Local Tools for Viewing JSON


Looking for tools to view large varying JSONs. I know I could beautify or flatten them etc but wondering if anyone else has created a tool for this.


  👤 luckman212 Accepted Answer ✓
In addition to jq (already mentioned) here are some other useful CLI tools for dealing with JSON data. Descriptions are directly from GitHub. Note: dsq also has a companion GUI app called DataStation[0] if you're looking for that.

fx: Command-line JSON processing tool - https://github.com/antonmedv/fx

dasel: JSON, YAML, TOML, XML, and CSV query and modification tool - https://github.com/TomWright/dasel

dsq: CLI tool for running SQL queries against JSON, CSV, Excel, Parquet, and more - https://github.com/multiprocessio/dsq

gron: Make JSON greppable - https://github.com/tomnomnom/gron

jello: Filter JSON and JSON Lines data with Python syntax - https://github.com/kellyjonbrazil/jello

jless: Command-line pager for JSON data - https://github.com/PaulJuliusMartinez/jless

jid: Json incremental digger - https://github.com/simeji/jid

jql: JSON query language CLI tool - https://github.com/yamafaktory/jql

qp: Command-line (ND)JSON querying - https://github.com/paybase/qp

[0]: https://github.com/multiprocessio/datastation


👤 arkitaip
VS Code has lots of plugins for working with JSON. The only problem is that you have to use VS Code.

👤 armchairhacker
jq (command-line app)

or you could write a small javascript and run it via node

Honestly it’s hard to beat text formats for viewing JSON unless you have particular queries. There’s just a lot of data no matter which way you try to represent it