Nicolas Williams 
							
						 
					 
					
						
						
							
						
						02cf1831e9 
					 
					
						
						
							
							Fix   #649  
						
						 
						
						
						
						
					 
					
						2014-12-23 18:16:21 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						44c2382402 
					 
					
						
						
							
							Add --argjson,  fix   #648  
						
						 
						
						
						
						
					 
					
						2014-12-12 16:40:07 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						89791a000b 
					 
					
						
						
							
							Add support for JSON sequence MIME type  
						
						 
						
						... 
						
						
						
						Per draft-ietf-json-text-sequence-07 (which soon will be published as an
RFC). 
						
						
					 
					
						2014-10-12 08:44:40 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						7a8e3c759e 
					 
					
						
						
							
							Never close stdin; allow multiple - arguments  
						
						 
						
						
						
						
					 
					
						2014-08-30 00:40:03 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						b70bea8d34 
					 
					
						
						
							
							Handle invalid inputs in argument files ( fix   #562 )  
						
						 
						
						
						
						
					 
					
						2014-08-30 00:40:03 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								William Langford 
							
						 
					 
					
						
						
							
						
						d177944b75 
					 
					
						
						
							
							Properly handle incomplete json when input is file  
						
						 
						
						... 
						
						
						
						Fix #562  
						
						
					 
					
						2014-08-28 21:52:45 -04:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						23e2e2eab3 
					 
					
						
						
							
							Quiet warning about freopen() of stdout  
						
						 
						
						
						
						
					 
					
						2014-08-20 20:49:30 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						8d2d5e37e5 
					 
					
						
						
							
							Drop "any/" in module search; use 1.x-master  
						
						 
						
						
						
						
					 
					
						2014-08-20 20:48:48 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						1ba8c2cfa6 
					 
					
						
						
							
							Add module directive, modulemeta builtin  
						
						 
						
						... 
						
						
						
						Fix #425 . 
						
						
					 
					
						2014-08-14 03:26:26 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								William Langford 
							
						 
					 
					
						
						
							
						
						38b939688a 
					 
					
						
						
							
							Added library system with -l, -L, and JQ_LIBRARY_PATH  
						
						 
						
						... 
						
						
						
						Created util.[ch] to hold common utilities. 
						
						
					 
					
						2014-07-22 22:51:11 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						01fc8168e9 
					 
					
						
						
							
							Add -i option to edit files in place ( fix   #105 )  
						
						 
						
						
						
						
					 
					
						2014-07-20 00:11:23 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						3362fb3406 
					 
					
						
						
							
							Add -n to short usage msg; fix --arg msg  
						
						 
						
						
						
						
					 
					
						2014-07-20 00:04:24 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						a68958e5dc 
					 
					
						
						
							
							error(x) should not tostring its arg; fix   #466  
						
						 
						
						
						
						
					 
					
						2014-07-07 22:26:53 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						7fce34292e 
					 
					
						
						
							
							Add try EXP catch EXP  
						
						 
						
						
						
						
					 
					
						2014-07-06 01:29:42 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						233e32208c 
					 
					
						
						
							
							Fix option stacking bug  
						
						 
						
						
						
						
					 
					
						2014-06-21 18:01:00 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						63e31c2a35 
					 
					
						
						
							
							Remove stray fprintf() from last commit  
						
						 
						
						
						
						
					 
					
						2014-06-20 23:29:53 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						f9349becab 
					 
					
						
						
							
							Allow stacking of short options ( fix   #346 )  
						
						 
						
						
						
						
					 
					
						2014-06-20 23:26:54 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						8725d9fa3e 
					 
					
						
						
							
							Minor style cleanup in main.c  
						
						 
						
						
						
						
					 
					
						2014-06-17 19:04:55 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						0c762925b2 
					 
					
						
						
							
							Add -j / --join-output option, similar to -r  
						
						 
						
						... 
						
						
						
						Fix #215 . 
						
						
					 
					
						2014-06-17 18:59:35 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						e151a300d0 
					 
					
						
						
							
							Fix   #266 ; make help message more useful  
						
						 
						
						
						
						
					 
					
						2014-06-17 16:47:12 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						ea63d5d3c2 
					 
					
						
						
							
							No args default w/ tty stdout, not tty stdin  #220  
						
						 
						
						
						
						
					 
					
						2014-06-16 22:34:50 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						d1ea3ab89d 
					 
					
						
						
							
							Add flags argument to jv_parser_new()  
						
						 
						
						... 
						
						
						
						For extensibility.  We might add streaming parser options, even binary
JSON encoding options. 
						
						
					 
					
						2014-06-04 18:35:30 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Andrew Rodland 
							
						 
					 
					
						
						
							
						
						36e495da1e 
					 
					
						
						
							
							Make jq --raw-output --unbuffered work  
						
						 
						
						... 
						
						
						
						--unbuffered was only affecting the normal output case, not the --raw-output case. Make the two of them play together.
This also makes sure that the output is flushed *after* printing the newline, so a consumer doesn't lag a line behind. 
						
						
					 
					
						2014-02-26 01:42:29 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						ab363e9e50 
					 
					
						
						
							
							Normalize errors for -e  
						
						 
						
						
						
						
					 
					
						2013-12-26 12:54:03 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								David R. MacIver 
							
						 
					 
					
						
						
							
						
						7b671b95d2 
					 
					
						
						
							
							don't need to check for NULL there  
						
						 
						
						
						
						
					 
					
						2013-12-08 23:52:07 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								David R. MacIver 
							
						 
					 
					
						
						
							
						
						f4ae5c883b 
					 
					
						
						
							
							consistent use of goto out in main  
						
						 
						
						
						
						
					 
					
						2013-12-08 19:22:18 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						77936a594d 
					 
					
						
						
							
							Add -I / --online-input for huge top-level arrays  
						
						 
						
						
						
						
					 
					
						2013-12-04 18:21:41 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						d018e43ddc 
					 
					
						
						
							
							Add -e | --exit-status CLI option  
						
						 
						
						
						
						
					 
					
						2013-12-04 18:21:40 -06:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						6a401c8262 
					 
					
						
						
							
							Add a --unbuffered option.  Closes   #206  
						
						 
						
						
						
						
					 
					
						2013-11-08 12:21:45 +00:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						8c2e228c74 
					 
					
						
						
							
							Fix the jv_parser interface.  
						
						 
						
						
						
						
					 
					
						2013-06-23 12:26:49 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						f44ecf3872 
					 
					
						
						
							
							Remove Autoconf-generated config.h.  
						
						 
						
						
						
						
					 
					
						2013-06-23 12:01:58 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						298b2a6033 
					 
					
						
						
							
							Add libjq autoconf goo  
						
						 
						
						
						
						
					 
					
						2013-06-21 11:57:12 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						3216d7683a 
					 
					
						
						
							
							Fix serious bug in handling of --argfile  
						
						 
						
						
						
						
					 
					
						2013-06-18 19:05:52 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						0ed6347d47 
					 
					
						
						
							
							Allow --run-tests to take a file argument  
						
						 
						
						
						
						
					 
					
						2013-06-15 17:37:15 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						3f86e97f70 
					 
					
						
						
							
							Fixup API to get closer to a libjq  
						
						 
						
						
						
						
					 
					
						2013-06-15 17:37:15 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						bbf4e05fde 
					 
					
						
						
							
							Move slurp_file() into library as jv_load_file()  
						
						 
						
						... 
						
						
						
						Needed as part of creating a libjq. 
						
						
					 
					
						2013-06-15 00:08:59 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						5dac485458 
					 
					
						
						
							
							Make jq --version print to stdout, not stderr  
						
						 
						
						
						
						
					 
					
						2013-06-03 23:22:59 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						cc8761dbde 
					 
					
						
						
							
							Add command-line option to sort object keys.  
						
						 
						
						... 
						
						
						
						Closes #79 . 
						
						
					 
					
						2013-06-03 23:12:31 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						dcf1ac0d1f 
					 
					
						
						
							
							Merge pull request  #135  from 13ren/locfile_bugfix  
						
						 
						
						... 
						
						
						
						Locfile bugfix 
						
						
					 
					
						2013-05-29 03:38:15 -07:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brendan Macmillan 
							
						 
					 
					
						
						
							
						
						40378a18f7 
					 
					
						
						
							
							locfile.h -> locfile.h + locfile.c  
						
						 
						
						... 
						
						
						
						clean up includes of a few files 
						
						
					 
					
						2013-05-29 15:17:01 +10:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Brendan Macmillan 
							
						 
					 
					
						
						
							
						
						6e373942e5 
					 
					
						
						
							
							Load library from ~/.jq  
						
						 
						
						
						
						
					 
					
						2013-05-29 15:05:40 +10:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						f0b982795c 
					 
					
						
						
							
							Make jq --version report an actual git revision.  
						
						 
						
						... 
						
						
						
						Closes #129 . 
						
						
					 
					
						2013-05-24 23:35:38 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						03598bb5d6 
					 
					
						
						
							
							Add --argfile variant of --arg (issue  #117 )  
						
						 
						
						... 
						
						
						
						This is useful when one has a database (in JSON form) to query using jq
input data.
    % echo '{"a":1, "c":5}' > db.json
    % echo '"c"'|./jq --argfile f /tmp/a '$f[.]'
    5
    % echo '"a"'|./jq --argfile f /tmp/a '$f[.]'
    1
    % echo '"b"'|./jq --argfile f /tmp/a '$f[.]'
    null
    % 
						
						
					 
					
						2013-05-23 13:52:06 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						e83e51eb56 
					 
					
						
						
							
							'length' function now measures string length in codepoints, not bytes.  
						
						 
						
						
						
						
					 
					
						2013-05-15 00:37:38 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						a47cfa4757 
					 
					
						
						
							
							Delete unnecessary _POSIX_SOURCE.  Closes   #89  
						
						 
						
						
						
						
					 
					
						2013-05-13 16:41:11 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						a511d03d85 
					 
					
						
						
							
							Configure whether colour is displayed by default directly in source  
						
						 
						
						
						
						
					 
					
						2013-05-08 19:37:12 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						2363246eea 
					 
					
						
						
							
							Merge remote-tracking branch 'stagrlee/master' into autotools  
						
						 
						
						... 
						
						
						
						Conflicts:
	Makefile
	jq_test.c 
						
						
					 
					
						2013-05-08 00:52:24 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Nicolas Williams 
							
						 
					 
					
						
						
							
						
						65deaaacf5 
					 
					
						
						
							
							Fix   #111 : exit(1) when inputs are not valid JSON  
						
						 
						
						
						
						
					 
					
						2013-05-06 12:36:53 -05:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
							
							
								 
								Stephen Dolan 
							
						 
					 
					
						
						
							
						
						5be97463ec 
					 
					
						
						
							
							Add a --arg option to allow variables to be passed from the cmdline.  
						
						 
						
						... 
						
						
						
						Closes #107  
						
						
					 
					
						2013-05-06 14:21:00 +01:00