位> uname -a
Linux feross 4.3.3-2-ARCH #1 SMP PREEMPT Wed Dec 23 20:09:18 CET 2015 x86_64 GNU/Linux
位> jq --version
jq-1.5
位> echo '{"stack": "overflow"}'|jq|cat
jq - commandline JSON processor [version 1.5]
Usage: jq [options] <jq filter> [file...]
jq is a tool for processing JSON inputs, applying the
given filter to its JSON text inputs and producing the
filter's results as JSON on standard output.
...
Under some circumstances, some versions of jq get confused when there is no explicit filter. The problem has (we believe) been resolved (in "master"). If your version misbehaves, simply specify "." (i.e. jq .).
Newer versions of jq default to . as the program in more cases than older ones. Just use jq ..
Most helpful comment
Newer versions of jq default to
.as the program in more cases than older ones. Just usejq ..