Root
Setup
Selector: $
{
"key": "value",
"another key": {
"complex": [
"a",
1
]
}
}
Results
Consensus
[
{
"another key": {
"complex": [
"a",
1
]
},
"key": "value"
}
]
Scalar consensus
The scalar consensus applies for implementations which return a single value where only one match is possible (instead of an array of a single value).
{"another key": {"complex": ["a", 1]}, "key": "value"}
Other responses
Bash (JSONPath.sh)
[]
Elixir (ExJsonPath)
Not supported
syntax error before:
PHP (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
Perl (JSON-Path)
[
""
]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
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.