jpq is a TUI utility, written in Golang for editing and view JSON files, in short it is a TUI for the jq command.
We have already published a similar utility written in C++, if you are interested in also learning about it, click here to learn more!
First of all you will need Go installed on your system.
You can install using some package managers for some operating systems, such as:
But, regardless of the operating system, you can clone, build and install, to do so, run the commands below:
Then it is good to remove the downloaded repository:
cd .. && rm -rf jqp
and also thego/
folder that will be created:rm -rf go/
.
Using jqp is very simple, just run the jqp
command, use the -f
or --file
parameter and indicate the JSON file as an argument, example:
example.json
Opening the file with jqp:
For more information use the help:
And access the repository: https://github.com/noahgorstein/jqp.