jqless
is a combination between jq
and less
, enabling users to filter and extract data from JSON in real-time -- useful when first learning the syntax or for power users trying to extract multiple pieces of data from a single JSON blob.
Build from source with Go, see the release binaries, or use Homebrew if on Mac:
brew tap samsullivan/samsullivan
brew install jqless
To use, start jqless
in your favorite terminal by either piping JSON data to the process or including a file path as the first argument.
jqless [path/to/file.json]
cat [path/to/file.json] | jqless
Once loaded, type your jq
query as expected and see the results filter. To extract results to your clipboard, use ctrl+x
as shown in help text.
More options to come in future versions!
It is written in Golang using the Bubble Tea framework and gojq
. Inspiration h/t to jq-live
.