pq
jp
Our great sponsors
- InfluxDB - Collect and Analyze Billions of Data Points in Real Time
- Onboard AI - Learn any GitHub repo in 59 seconds
- SaaSHub - Software Alternatives and Reviews
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.
pq
-
Gojq: Pure Go Implementation of Jq
Why use a special syntax that's hard to remember when you can just use Python?
I wrote a jq-like that accepts Python syntax called pq: https://github.com/dvolk/pq
So you can write stuff like:
$ echo '{ "US": 3, "China": 12, "UK": 1 }' | pq -c "sum(data.values())"
-
FX: An interactive alternative to jq to process JSON
If you want to use jq but with Python syntax, I wrote pq:
jp
-
Jq Internals: Backtracking
I have a hard time suggesting such a thing, because I find JMESPath incredibly inferior to jq's expressiveness, but if you're in the AWS ecosystem much, you may enjoy https://github.com/jmespath/jp#readme which uses the same query language as does awscli (https://docs.aws.amazon.com/cli/latest/userguide/cli-usage-f...). That may at least pay more dividends than keeping jq's language in your head where it will only ever be used by jq
- Zq: An Easier (and Faster) Alternative to Jq
- What tools did you discover that made your work so much easier for DevOps & SRE
-
FX: An interactive alternative to jq to process JSON
There’s also jp, which interprets JMESPath: https://github.com/jmespath/jp
This one has the advantage of being natively understood by aws-cli, meaning you can pass a JMESPath to an AWS call and only receive the filtered / transformed result back.
- Tips on Adding JSON Output to Your CLI App
What are some alternatives?
jq - Command-line JSON processor
jq - Command-line JSON processor [Moved to: https://github.com/jqlang/jq]
fx - Terminal JSON viewer & processor
jid - json incremental digger
scout - Reading and writing in JSON, Plist, YAML and XML data made simple when the data format is not known at build time. Swift library and command-line tool.
jet - CLI to transform between JSON, EDN, YAML and Transit using Clojure
rq - Record Query - A tool for doing record analysis and transformation
jaq - A jq clone focussed on correctness, speed, and simplicity
rb - Turns Ruby into a versatile command line utility
query-json - Faster, simpler and more portable implementation of `jq` in Reason
hashmap - A Golang lock-free thread-safe HashMap optimized for fastest read access.
ojg - Optimized JSON for Go