Skip to content

samsullivan/jqless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jqless

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.

demo

Installation

Build from source with Go, see the release binaries, or use Homebrew if on Mac:

brew tap samsullivan/samsullivan
brew install jqless

Usage

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!

Acknowledgements

It is written in Golang using the Bubble Tea framework and gojq. Inspiration h/t to jq-live.