Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to incorrect --stream paths #2010

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions docs/content/manual/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,11 @@ sections:

* `--stream`:

Parse the input in streaming fashion, outputing arrays of path
and leaf values (scalars and empty arrays or empty objects).
For example, `"a"` becomes `[[],"a"]`, and `[[],"a",["b"]]`
becomes `[[0],[]]`, `[[1],"a"]`, and `[[1,0],"b"]`.
Parse the input in depth-first, streaming fashion, outputting
arrays of path and leaf values (scalars and empty arrays or
empty objects). For example, `"a"` becomes `[[],"a"]`, and
`[[],"a",["b"]]` becomes `[[0],[]]`, `[[1],"a"]`, and
`[[2,0],"b"]`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

   `[[],"a",["b"]]` becomes `[[0],[]]`, `[[1],"a"]`, `[[2,0],"b"]`,
   `[[2,0]]` and `[[2]]`.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed and committed to branch.


This is useful for processing very large inputs. Use this in
conjunction with filtering and the `reduce` and `foreach` syntax
Expand Down