Fix --stream-errors w/o --stream, and doc+test (close #2748)
This commit is contained in:
1 parent
123c780607
commit
f64ef1a7d7
4 files changed
+25
-1
No files matched your search
@@ -130,6 +130,16 @@ sections:
|
||||
conjunction with filtering and the `reduce` and `foreach` syntax
|
||||
to reduce large inputs incrementally.
|
||||
|
||||
* `--stream-errors`:
|
||||
|
||||
Like `--stream`, but invalid JSON inputs yield array calues
|
||||
where the first element is the error and the second is a path.
|
||||
For example, `["a",n]` produces ["Invalid literal at line 1,
|
||||
column 9",[1]]`.
|
||||
|
||||
Implies `--stream`. Invalid JSON inputs produce no error values
|
||||
when `--stream` without `--stream-errors`.
|
||||
|
||||
* `--slurp`/`-s`:
|
||||
|
||||
Instead of running the filter for each JSON object in the
|
||||
|
||||
Reference in new issue
Block a user