Dot notation without dot
Setup
Selector: $a
{"a": 1, "$a": 2}
Results
Consensus
Not supported
Other responses
Bash (JSONPath.sh)
[
1
]
Clojure (json-path)
¹
1
Elixir (jaxon)
[]
1
JavaScript (Goessner)
²
[
1
]
JavaScript (jsonpath-plus)
[
2
]
Kotlin (com.nfeld.jsonpathkt)
¹
1
PHP (Goessner)
²
[
2
]
PHP (softcreatr-jsonpath)
[
1
]
Perl (JSON-Path)
[
1
]
Python (jsonpath)
²
[
2
]
Python (python-jsonpath)
[
1
]
Raku (JSON-Path)
[
1
]
Ruby (jsonpath)
[
2
]
dotNET (Json.NET)
[
2
]
dotNET (JsonPathLib)
[
1
]
Errors
path: invalid character at 1
Rust (jsonpath_plus)
Error Parsing JSON Path:
$a
panic occurred
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.