Bracket notation with number after dot notation with wildcard on nested arrays with different length
Setup
Selector: $.*[1]
[[1], [2,3]]
Results
Consensus
[
3
]
Other responses
C (json-glib)
[
[
[
1
],
[
2,
3
]
]
]
[]
Python (jsonpath-ng)
[]
Python (jsonpath-rw)
[]
Scala (jsonpath)
[]
dotNET (Json.NET)
[]
Errors
Clojure (json-path)
¹
java.lang.IndexOutOfBoundsException nil
Ruby (jsonpath)
1 is not a symbol nor a string
Footnotes
- ¹ This implementation returns a single value where only one match is possible (instead of an array of a single value).
- ² This implementation returns a specific not found value if no match exists.
- ³ This implementation returns a specific not found value if a query that would regularly return a single match results in no match.