Nicolas Williams fe29d3d3fa Add ?, .[]?, and .. operators
Make XPath-like `//a/b` recursive structure traversal easier in jq,
which then becomes:

    ..|.a?.b?

The `?` operator suppresses errors about . not being an array or object.
The `..` operator is equivalent to calling the new `recurse_down`
built-in, which in turn is equivalent to

    recurse(.[]?)

Note that `..a` is not supported; neither is `...a`.  That could be add
added, but it doesn't seem worth the trouble of saving the need to type
a '|'.
2014-02-20 15:33:07 -06:00
2013-12-20 11:36:52 +01:00
2014-02-20 15:33:07 -06:00
2013-09-14 19:30:39 +01:00
2014-02-20 15:33:07 -06:00
2013-12-27 13:01:14 -06:00
2013-12-04 18:21:42 -06:00
2014-02-20 15:33:07 -06:00
2013-12-04 18:21:41 -06:00
2013-06-18 00:06:00 +01:00
2014-02-20 15:33:07 -06:00
2013-12-04 18:21:41 -06:00
2013-12-27 12:49:15 -06:00
2013-06-15 17:37:15 -05:00
2013-06-21 11:57:12 -05:00
2013-12-26 18:40:34 -06:00
2013-06-22 13:34:24 +01:00
2013-12-17 08:40:03 -06:00
2013-12-26 18:40:34 -06:00
2014-02-20 15:33:07 -06:00
2013-12-04 18:21:41 -06:00
2013-12-26 12:54:03 -06:00
2014-02-20 15:33:07 -06:00
2014-02-20 15:33:07 -06:00
2013-12-31 17:19:40 -06:00

jq

jq is a command-line JSON processor.

If you want to learn to use jq, read the documentation at http://stedolan.github.io/jq. This documentation is generated from the docs/ folder of this repository.

If you want to hack on jq, feel free, but be warned that its internals are not well-documented at the moment. Bring a hard hat and a shovel. Also, read the wiki: http://github.com/stedolan/jq/wiki

If you're building directly from the latest git, you'll need flex and bison installed. To build, run:

autoreconf -i
./configure
make

After make finishes, you'll be able to use ./jq. You can also install it using:

sudo make install

If you're not using the latest git version but instead building a released tarball (available on the website), then you won't need to run autoreconf (and shouldn't), and you won't need flex or bison.

S
Description
No description provided
Readme BSD-2-Clause, MIT
24 MiB
0 Stars 1 Watchers 0 Forks
Languages
C 78.7%
M4 6.4%
Shell 6.3%
Yacc 3.2%
jq 1.5%
Other 3.9%