Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-12-27 | bsearch(x) (binary search): builtin.c (tested), with documentation and test ↵ | pkoppstein | |
case. Always yields an integer (even if input is unsorted); returns (-1 - ix) if x is not in input array. | |||
2014-12-27 | ascii_upcase/0 and ascii_downcase/0 | pkoppstein | |
2014-12-27 | Add `debug` builtin | Nicolas Williams | |
And refactor setup of jv dump flags. | |||
2014-12-27 | Don't force C API users to set input cb | Nicolas Williams | |
2014-12-27 | Make jq --run-tests show test line numbers | Nicolas Williams | |
2014-12-27 | Fix uninitialized struct field | Nicolas Williams | |
2014-12-26 | Streaming parser torture tests | Nicolas Williams | |
2014-12-26 | Fuzz JSON parser | Nicolas Williams | |
2014-12-26 | Better quoting in tests/run | Nicolas Williams | |
2014-12-26 | Add Streaming parser (--stream) | Nicolas Williams | |
Streaming means that outputs are produced as soon as possible. With the `foreach` syntax one can write programs which reduce portions of the streaming parse of a large input (reduce into proper JSON values, for example), and discard the rest, processing incrementally. This: $ jq -c --stream . should produce the same output as this: $ jq -c '. as $dot | path(..) as $p | $dot | getpath($p) | [$p,.]' The output of `jq --stream .` should be a sequence of`[[<path>],<leaf>]` and `[[<path>]]` values. The latter indicate that the array/object at that path ended. Scalars and empty arrays and objects are leaf values for this purpose. For example, a truncated input produces a path as soon as possible, then later the error: $ printf '[0,\n'|./jq -c --stream . [[0],0] parse error: Unfinished JSON term at EOF at line 3, column 0 $ | |||
2014-12-26 | Allow C-coded functions to `empty` | Nicolas Williams | |
Just return a jv_invalid() without a message. | |||
2014-12-26 | Add BLOCK_8() macro | Nicolas Williams | |
2014-12-26 | Fix `foreach` non-progation of errors | Nicolas Williams | |
Errors were being re-propagated as "break". Also add `error/0` builtin, which made this fix easier. | |||
2014-12-26 | Allow zero-length buffers in jv_parser_set_buf() | Nicolas Williams | |
If the caller is at EOF and has no more bytes to feed the parser, how is the parser to be told about the EOF condition? A small fix to allow zero-length buffers in jv_parser_set_buf() fixes this problem (it also makes it easier to deal with async I/O: feed the parser whatever is available, including nothing). | |||
2014-12-26 | Fix in and inside | Nicolas Williams | |
2014-12-26 | Merge pull request #624 from Janrain-Colin/patch-1 | Nico Williams | |
Doc correction | |||
2014-12-26 | Merge pull request #366 from slapresta/inversed-contains | Nico Williams | |
Added `in` command | |||
2014-12-26 | Merge pull request #628 from slapresta/map-on-objects | Nico Williams | |
Modify map\1 so that it works on objects | |||
2014-12-24 | Fix infinite loop in read_more() (fix #656) | Nicolas Williams | |
2014-12-24 | Fix EOF handling; fix #656 | Nicolas Williams | |
2014-12-24 | Merge pull request #651 from eiiches/fix-examples | Nico Williams | |
Fix several errors in the manual | |||
2014-12-24 | Add @tsv; fix #645 | Nicolas Williams | |
2014-12-24 | Merge pull request #653 from msabramo/patch-1 | Nico Williams | |
.travis.yml: Set sudo false; use containers | |||
2014-12-24 | Module search revamp for pkg managers | Nicolas Williams | |
The search path listed in an import directive can now be an array. The top-level search path is appended. Null and empty strings in the path terminate any search. The "." in "." and "./*" is replaced with the directory containing the file doing the import (for command-line programs this is the current directory, though that may be a bad idea). No version numbers or anything of the sort are gratuitously added to the search paths. All this makes external package managers possible by allowing dependencies to be installed local to dependents. | |||
2014-12-24 | Fix bug caused by 8ca07a0 | Nicolas Williams | |
2014-12-24 | Fix #348: reject unescaped control chars | Nicolas Williams | |
2014-12-23 | Merge pull request #601 from slapresta/redefine-any-all | Nico Williams | |
Define {any,all}/0,1 in terms of {any,all}/2 | |||
2014-12-23 | Use __attribute__ __printf__ with GCC | Nicolas Williams | |
2014-12-23 | Make `values` faster (fix #652) | Nicolas Williams | |
2014-12-23 | Fix #649 | Nicolas Williams | |
2014-12-22 | .travis.yml: Set sudo false; use containers | Marc Abramowitz | |
This is the way to enable Travis's fancy new containers, which should result in faster builds. | |||
2014-12-22 | Define `map_values` | Santiago Lapresta | |
2014-12-22 | `in` is now `inside`, added `in` as inverse of `has` | Santiago Lapresta | |
2014-12-22 | Added `in` command | Santiago Lapresta | |
2014-12-21 | Fix examples in manual | Eiichi Sato | |
2014-12-21 | Fix indents in manual.yml | Eiichi Sato | |
2014-12-21 | HTML-escape jq programs in manual | Eiichi Sato | |
2014-12-21 | Fix examples in manual | Eiichi Sato | |
2014-12-12 | Merge pull request #611 from StevenMaude/tutorial-typo-fixes | Nico Williams | |
Fix typos in tutorial | |||
2014-12-12 | Merge pull request #616 from ianmiell/ianmiell_requirements | Nico Williams | |
Requirements made slightly more complete | |||
2014-12-12 | Add until(cond; next); fix #639 | Nicolas Williams | |
2014-12-12 | Fix #647, but caused by 89791a0 | Nicolas Williams | |
2014-12-12 | Add --argjson, fix #648 | Nicolas Williams | |
2014-12-12 | Merge pull request #642 from Janrain-Colin/patch-3 | Nico Williams | |
fix typo in manual | |||
2014-12-06 | fix typo in manual | Colin von Heuring | |
2014-11-29 | Fix refcount leak, fix #618 | Nicolas Williams | |
2014-11-28 | STOREV/LOADV* should also print refcnts | Nicolas Williams | |
2014-11-28 | Enable printing of stack val refcnts | Nicolas Williams | |
2014-11-28 | Print stack value refcounts when tracing (#636) | Nicolas Williams | |
2014-11-23 | Doc correction | Colin von Heuring | |