I have some unformatted JSON files. I want to format them with jq and see the formatted output via less:
cat *.json | jq | less
But it doesn't work. Just shows the jq's help.
O.K., jq needs a filter, minimum a ., but...
cat *.json | jq
works for me.
What is the difference? Is this a Bash bug, seeing that parsing the command line is the shell's task? Why does this only happen with jq?