Jq: Can't pipe output

Created on 5 Feb 2016  路  2Comments  路  Source: stedolan/jq

位> 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.
...
support

Most helpful comment

Newer versions of jq default to . as the program in more cases than older ones. Just use jq ..

All 2 comments

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 ..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bartgrantham picture bartgrantham  路  31Comments

ghost picture ghost  路  69Comments

evert picture evert  路  58Comments

ghost picture ghost  路  41Comments

vito-c picture vito-c  路  43Comments