JSONPath
jless
JSONPath | jless | |
---|---|---|
1 | 34 | |
927 | 4,517 | |
1.5% | - | |
6.7 | 6.3 | |
9 days ago | about 2 months ago | |
JavaScript | Rust | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
JSONPath
-
jq 1.7 Released
Another great alternative is JSONPath[1] which unfortunately not as widely supported and known despite being brilliant!
It's inspired by XPath so it's very familiar instead of a complete new DSL. The killer feature imo is the recursive key lookup so you can write `people..address` and it'll find all "address" keys that descend from "people" anywhere in the JSON. It's by far my favorite parsing language for JSON and I wrote an introduction blog on how to use it in JSON dataset parsing [2] :)
1 - https://github.com/JSONPath-Plus/JSONPath
2 - https://scrapfly.io/blog/parse-json-jsonpath-python/
jless
- Jless – a command-line JSON viewer
-
Jaq – A jq clone focused on correctness, speed, and simplicity
https://jless.io/ is similar, and will give you jq selectors so the two combine very well. (fx might have that feature too, I dunno)
- Jless – A Command-Line JSON Viewer
-
jq 1.7 Released
And jless [1] and gron [2].
This is the first I'm hearing of gron, but adding here for completeness sake. Meanwhile, JSON seems to be becoming a standard for CLI tools. Ideal scenario would be if every CLI tool has a --json flag or something similar, so that jc is not needed anymore.
[1] https://jless.io/
[2] https://github.com/tomnomnom/gron
-
Use Tetragon to Limit Network Usage for a set of Binary
jless
- jless - A Command-Line JSON Viewer
-
Jj: JSON Stream Editor
> * Switching to a GUI to browse the JSON that would let you copy the path to the current value would probably also help there*
Try https://jless.io/ then.
- Final FLiP Stack Weekly of 2022
- Ask HN: Programs that saved you 100 hours? (2022 edition)
What are some alternatives?
gojq - Pure Go implementation of jq
fx - Terminal JSON viewer & processor
jet - CLI to transform between JSON, EDN, YAML and Transit using Clojure
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
fq - jq for binary formats - tool, language and decoders for working with binary and text formats
jq - Command-line JSON processor
visidata - A terminal spreadsheet multitool for discovering and arranging data
jsonpath-rust - Support for json-path in Rust
yamlpath - YAML/JSON/EYAML/Compatible get/set/merge/validate/scan/convert/diff processors using powerful, intuitive, command-line friendly syntax.
jql - A JSON Query Language CLI tool
rsl - reserialise: lossy but versatile conversion between data serialisation formats
dsq - Commandline tool for running SQL queries against JSON, CSV, Excel, Parquet, and more.