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

Documentation in manual for --stream is incorrect #1279

Closed
gnuvince opened this issue Nov 28, 2016 · 2 comments
Closed

Documentation in manual for --stream is incorrect #1279

gnuvince opened this issue Nov 28, 2016 · 2 comments
Assignees
Labels

Comments

@gnuvince
Copy link

The manual states:

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"]

However, this is incorrect, the path for "b" is [2,0].

~$ echo '[[],"a", ["b"]]'|jq -Mc --stream .
[[0],[]]
[[1],"a"]
[[2,0],"b"]
[[2,0]]
[[2]]
@nicowilliams nicowilliams self-assigned this Jan 23, 2017
@nicowilliams
Copy link
Contributor

Thanks for this report!

@itchyny
Copy link
Contributor

itchyny commented Jun 3, 2023

Resolved by #2387, so closing.

@itchyny itchyny closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants