Nicolas Williams ae625d0de7 Revert "Add -I / --online-input for huge top-level arrays"
This reverts commit 77936a594d.

There are too many odd bugs in this mode, and it turns out to be a bad
idea anyways.  Instead, in the future a better option will be to pursue
alternative parsers, such as:

 - streaming parser that outputs only when a new leaf value is added or
   an array/object is opened/closed; options here include whether to
   include a path in each output;

 - parsers for binary JSON encodings (there's a variety of them).

Then one might run jq with a streaming parser and use `reduce` to
coalesce inputs from some depth down (instead of from one level down as
the reverted commit had intended).

Besides, a fully streaming parser is desirable in some cases, therefore
we should have such a thing as an option.

I've explored modifying the current parser to support a streaming
option, but it only makes the code very difficult to follow, which is
one reason that alternate parsers makes sense.  At any rate, this is all
for the future.  For now there's no streaming of individual texts, just
text sequences.
2014-06-04 18:15:58 -05:00
2014-05-21 01:23:28 +02:00
2013-09-14 19:30:39 +01:00
2014-03-13 00:29:53 -05:00
2013-12-04 18:21:42 -06:00
2014-05-12 01:37:27 +02: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-21 11:57:12 -05:00
2014-02-26 01:43:00 -06:00
2013-06-22 13:34:24 +01:00
2014-06-02 00:56:01 -05:00
2014-02-20 15:33:07 -06:00
2014-02-21 10:51:16 -06:00
2013-12-04 18:21:41 -06:00
2014-02-20 15:33:07 -06:00
2014-02-20 15:33:07 -06:00
2014-03-20 15:49:59 -07: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. You can also try it online at http://jqplay.herokuapp.com.

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%