You mean?
cat json | jq | less
I checked the code, it's concatenating the output with newlines. Not necessary at all. cat json | jq | less
I checked the code, it's concatenating the output with newlines. Not necessary at all. jq . -C | less -RTo be fair, the readme doesn't explain it well. This is a GUI app that allows you to see the jq results in real time. Here [1] is a video.
jq . < json | less
Sorry for being pedantic. Moving on.I just personally find that using cat as the first part of the pipeline makes everything easier.
Plus, if you're going to argue against useless use of cat, there's also no reason to send the file in through stdin. jq can read the file directly.
(But it makes the pipeline harder to edit so actually I have no problem with `cat JSON`)
jq . json | less < json jq . | less