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

Flatten operator examples seem incorrect #126

Open
Swaps76 opened this issue May 21, 2024 · 0 comments
Open

Flatten operator examples seem incorrect #126

Swaps76 opened this issue May 21, 2024 · 0 comments

Comments

@Swaps76
Copy link

Swaps76 commented May 21, 2024

Referring here;

https://jmespath.org/specification.html#id8

search([0], ["first", "second", "third"]) -> "first"
search([-1], ["first", "second", "third"]) -> "third"
search([100], ["first", "second", "third"]) -> null
search(foo[0], {"foo": ["first", "second", "third"]) -> "first"
search(foo[100], {"foo": ["first", "second", "third"]) -> null
search(foo[0][0], {"foo": [[0, 1], [1, 2]]}) -> 0

I am a newby so apologies if incorrect, but should there be closing curly brackets on lines 4 and 5?

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

No branches or pull requests

1 participant