All Projects → gpanders → ijq

gpanders / ijq

Licence: GPL-3.0 license
Interactive jq (mirror)

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to ijq

Okurl
OkHttp Kotlin command line
Stars: ✭ 77 (-23%)
Mutual labels:  jq
Tmux 1password
🔑 Access your 1Password login items within tmux!
Stars: ✭ 167 (+67%)
Mutual labels:  jq
ycat
Command line processor for YAML/JSON files using Jsonnet
Stars: ✭ 21 (-79%)
Mutual labels:  jq
Yq
Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
Stars: ✭ 1,688 (+1588%)
Mutual labels:  jq
Node Jq
Node.js wrapper for jq
Stars: ✭ 147 (+47%)
Mutual labels:  jq
Emuto
manipulate JSON files
Stars: ✭ 180 (+80%)
Mutual labels:  jq
Java Jq
Lightweight Java wrapper around JQ, a flexible JSON processor available for multiple platforms
Stars: ✭ 37 (-63%)
Mutual labels:  jq
wildq
Command-line TOML/JSON/INI/YAML/XML/HCL processor using jq c bindings
Stars: ✭ 22 (-78%)
Mutual labels:  jq
Json Splora
GUI for editing, visualizing, and manipulating JSON data
Stars: ✭ 1,818 (+1718%)
Mutual labels:  jq
jsqry-cli2
Small CLI tool (similar to jq) to query JSON using sane DSL
Stars: ✭ 21 (-79%)
Mutual labels:  jq
Jqr
R interface to jq
Stars: ✭ 123 (+23%)
Mutual labels:  jq
Pyjq
A Python binding for ./jq
Stars: ✭ 133 (+33%)
Mutual labels:  jq
Jq Web
jq in the browser with emscripten.
Stars: ✭ 188 (+88%)
Mutual labels:  jq
Live Dl
Download live streams from YouTube
Stars: ✭ 82 (-18%)
Mutual labels:  jq
json to paths
Distill a JSON document into a collection of paths both for 'jq' and 'xpath'
Stars: ✭ 65 (-35%)
Mutual labels:  jq
Jq Mode
Emacs major mode for editing jq queries.
Stars: ✭ 70 (-30%)
Mutual labels:  jq
Jackson Jq
jq for Jackson Java JSON Processor
Stars: ✭ 178 (+78%)
Mutual labels:  jq
jqkungfu
A jq playground, written in WebAssembly
Stars: ✭ 108 (+8%)
Mutual labels:  jq
jqjs
Pure-JavaScript implementation of the jq JSON query language
Stars: ✭ 39 (-61%)
Mutual labels:  jq
jq-tutorial
Interactive exercises for learning jq
Stars: ✭ 109 (+9%)
Mutual labels:  jq

ijq

Interactive jq tool. Like jqplay for the commandline.

Demo

asciicast

Installation

Install from package manager

Packaging status

Download a pre-compiled release

Select the version you want to download from sourcehut and download one of the pre-compiled releases from that page. Then extract the archive and copy the binary and, optionally, the man page to the correct location.

Example:

wget https://git.sr.ht/~gpanders/ijq/refs/download/vX.Y.Z/ijq-vX.Y.Z-linux-amd64.tar.gz
tar xf ijq-vX.Y.Z-linux-amd64.tar.gz
cd ijq-vX.Y.Z
cp ijq /usr/local/bin
mkdir -p /usr/local/share/man/man1
cp ijq.1 /usr/local/share/man/man1

Build from source

Install go. To install ijq under /usr/local/bin/ simply run

make install

from the root of the project. To install to another location, set the prefix variable, e.g.

make prefix=~/.local install

To generate the man page you will also need to have scdoc installed.

Usage

ijq uses jq under the hood, so make sure you have that installed first.

Read from a file:

ijq file.json

Read from stdin:

curl -s https://api.github.com/users/gpanders | ijq

Press 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

Pressing Return also saves the filter to a history file ($XDG_DATA_HOME/ijq/history by default). You can browse the history by deleting everything in the filter field. Change the history file used with the -H option, or specify an empty string to disable history entirely (i.e. -H '').

If $XDG_DATA_HOME is undefined, then the directory used is platform dependent.

Use Shift plus the arrow keys to move between the different windows. When either of the input or output views have focus, you can use the arrow keys to scroll up and down. Vi keys also work, i.e. you can use j/k to scroll up or down, g to move to the top of the view, G to jump to the bottom of the view, and Ctrl-F/Ctrl-B to scroll up or down a page at a time.

Use Ctrl-C to exit ijq immediately, discarding all filters and state.

You can configure the colors by setting the JQ_COLORS environment variable. See the jq documentation for more details.

Contributing

Have a question, comment, or feature request? Send an email to the mailing list.

Report bugs on the ticket tracker. You can file a ticket without a sourcehut account by sending a plain text email to ~gpanders/[email protected].

Send patches to ~gpanders/[email protected] or open a pull request on GitHub.

Similar Work

License

GPLv3

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].