Dot notation with wildcard after recursive descent on scalar
Setup
Selector: $..*
42
Results
Consensus
[]
Not found consensus
This consensus applies for implementations which return a specific not found value if no match exists.
NOT_FOUND
Other responses
Elixir (ExJsonPath)
Not supported
syntax error before: '*'
Ruby (jsonpath)
[
42
]
Rust (jsonpath)
Not supported
parsing error
Scala (jsonpath)
[
42
]
dotNET (Json.NET)
[
42
]
Errors
Elixir (jaxon)
** (Jaxon.ParseError) Unexpected number, expected a string, number, object, array instead.
lib/jaxon/decoders/query.ex:29: anonymous fn/2 in Jaxon.Decoders.Query.query/2
lib/jsonpath.ex:8: Mix.Tasks.Execute.run/1
expression don't support in filter
JavaScript (jsonpath)
obj needs to be an object
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.