jmespath.site icon indicating copy to clipboard operation
jmespath.site copied to clipboard

Flatten operator examples seem incorrect

Open Swaps76 opened this issue 9 months ago • 0 comments

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?

Swaps76 avatar May 21 '24 09:05 Swaps76