rsl
JSONPath
rsl | JSONPath | |
---|---|---|
1 | 1 | |
7 | 927 | |
- | 1.5% | |
5.0 | 6.7 | |
about 1 month ago | 10 days ago | |
Go | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
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.
rsl
-
jq 1.7 Released
on a similar note I wrote little tool to convert from many formats to many formats
the biggest usecase for me is taking some csv, toml, xml, whatever and converting that to json so I can pipe to jq
https://github.com/sentriz/rsl
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/
What are some alternatives?
libnbd
gojq - Pure Go implementation of jq
jq-mode - Emacs major mode for editing jq queries.
jet - CLI to transform between JSON, EDN, YAML and Transit using Clojure
counsel-jq - Traverse complex JSON and YAML structures with live feedback
fq - jq for binary formats - tool, language and decoders for working with binary and text formats
yq - Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
visidata - A terminal spreadsheet multitool for discovering and arranging data
yamlpath - YAML/JSON/EYAML/Compatible get/set/merge/validate/scan/convert/diff processors using powerful, intuitive, command-line friendly syntax.
fx - Terminal JSON viewer & processor
jmespath.py - JMESPath is a query language for JSON.