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

Cannot index array with array #58

Closed
itchyny opened this issue Mar 15, 2020 · 0 comments · Fixed by #98
Closed

Cannot index array with array #58

itchyny opened this issue Mar 15, 2020 · 0 comments · Fixed by #98

Comments

@itchyny
Copy link
Contributor

itchyny commented Mar 15, 2020

jq has semantics for indexing array with array (get the indices) but jackson-jq does not implement this.

 % echo '[1,2,3,2,1,2,3]' | jq '.[[2]]'
[
  1,
  3,
  5
]
 % echo '[1,2,3,2,1,2,3]' | java -jar jackson-jq-cli-1.0.0-preview.20191208.jar '.[[2]]'
jq: error: Cannot index array with array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant