Yay, useless use of cat. I think you mean
jq . < json | less
Sorry for being pedantic. Moving on. 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