jq tool. Like jqplay for the commandline.
If you use macOS and Homebrew, you can install
brew install gpanders/tap/ijq
Select the version you want to download from sourcehut and download one of the precompiled releases from that page. Then extract the archive somewhere on your system path.
wget https://git.sr.ht/~gpanders/ijq/refs/v0.1.1/ijq-v0.1.1-linux-x86_64.tar.gz tar -C /usr/local/bin/ -xf ijq-v0.1.1-linux-x86_64.tar.gz
Install go. To install
/usr/local/bin/ simply run
from the root of the project. To install to another location, set the
make prefix=~/.local install
ijq uses jq under the hood, so make sure you have that installed first.
Read from a file:
Read from stdin:
curl -s https://api.github.com/users/gpanders | ijq
Return to close
ijq and print the current filtered output to stdout.
This will also print the current filter to stderr. This allows you to save the
filter for re-use with
jq in the future:
ijq file.json 2>filter.jq # Same output as above jq -f filter.jq file.json
Shift-Tab to cycle through the windows. The display windows
can be scrolled using Vim-like bindings, i.e.
hjkl or the arrow keys.