wsjq
howto
Our great sponsors
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.
wsjq
- Zq: An Easier (and Faster) Alternative to Jq
-
An Introduction to JQ
jq is unsurprisingly Turing complete, so I wrote a Whitespace interpreter[0] in jq. It is able to handle real-time I/O by requesting lines on-demand from stdin, which is the main input source, with `input` and outputting strings in a stream.
With a relatively large jq program like that, it is critical that the main recursive loop run efficiently, so it's annoying that there's no way to detect whether tail call optimization was applied, other than benchmarking. It would also be nice if object values were lazily evaluated so that it would be possible to create ad hoc switches.
howto
-
An Introduction to JQ
If there's an API for working with data that you know well already, it's somewhat pointless to learn the (quite esoteric) jq one.
Just pipe curl to node (https://github.com/jareware/howto/blob/master/Replacing%20jq...) or Python or Ruby or whatever you already know!
What are some alternatives?
kubectl-jq - Kubectl plugin that works like "kubectl get" but runs everything through a JQ program you provide
rb - Turns Ruby into a versatile command line utility
json-logs - A tool to pretty-print JSON logs, like those from zap or logrus.
jiq - jid on jq - interactive JSON query tool using jq expressions
gron - Make JSON greppable!
fx - Terminal JSON viewer & processor
jid - json incremental digger
miller - Miller is like awk, sed, cut, join, and sort for name-indexed data such as CSV, TSV, and tabular JSON
feedback - Public feedback discussions for: GitHub for Mobile, GitHub Discussions, GitHub Codespaces, GitHub Sponsors, GitHub Issues and more! [Moved to: https://github.com/github-community/community]