Current with dot notation
Setup
Selector: @.a
{"a": 1}
Results
Other responses
Bash (JSONPath.sh)
[]
C (json-glib)
Not supported
Unable to compile selector `@.a': Invalid first character “@”
Clojure (json-path)
¹
null
Cpp (jsoncons)
[
1
]
Dart (json_path)
Not supported
FormatException: "$" expected at 1:1. Expression: @.a
Elixir (ExJsonPath)
Not supported
syntax error before: '@'
Elixir (jaxon)
[]
Elixir (warpath)
¹
Not supported
Parser error: Invalid token on line 1, syntax error before: <<"@">>
Erlang (ejsonpath)
Not supported
syntax error before: '@'
Not supported
invalid syntax (position=0, reason=unrecognized input, near=@.a)
[
1
]
1
[
1
]
[]
Haskell (jsonpath)
Not supported
Invalid JSONPath: @.a
Error: 1:1:
|
1 | @.a
| ^^
unexpected "@."
expecting ".*", "..", '$', '.', '[', or white space
JavaScript (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
JavaScript (brunerd)
Not supported
JavaScript (jsonpath)
Not supported
Lexical error on line 1. Unrecognized text.
@.a
^
Java (com.github.jsurfer)
Not supported
org.antlr.v4.runtime.misc.ParseCancellationException
Java (com.jayway.jsonpath)
¹
³
1
Kotlin (com.nfeld.jsonpathkt)
¹
null
Objective-C (SMJJSONPath)
¹
³
1
PHP (Goessner)
²
Not found
jsonpath returned false, this might indicate an error
PHP (galbar-jsonpath)
²
Not supported
Invalid JSONPath error: 'Error in JSONPath near '@.a''
PHP (remorhaz-jsonpath)
Not supported
Error: 'Failed to build AST from JSONPath query: @.a'
PHP (softcreatr-jsonpath)
Not supported
Error: 'Unable to parse token @ in expression: .@.a'
Perl (JSON-Path)
[
1
]
Python (jsonpath)
²
Not found
jsonpath returned false, this might indicate an error
Python (jsonpath-ng)
[]
Python (jsonpath-rw)
[]
Python (jsonpath2)
Not supported
line 1:0 mismatched input '@' expecting '$'
ValueError("line 1:0 mismatched input '@' expecting '$'")
Raku (JSON-Path)
Not supported
JSON path parse error at position 0
Ruby (jsonpath)
[
1
]
Rust (jsonpath)
Not supported
parsing error
Rust (jsonpath_lib)
Not supported
path error:
@.a
^
Scala (jsonpath)
Not supported
JPError('$' expected but '@' found)
Swift (Sextant)
[
1
]
dotNET (Json.NET)
[]
dotNET (JsonCons.JsonPath)
[
1
]
dotNET (JsonPath.Net)
Not supported
Path must start with '$'
dotNET (JsonPathLib)
[]
dotNET (Manatee.Json)
[
1
]
JSON (Path_Reference_Implementation)
Not supported
--> 1:1
|
1 | @.a
| ^---
|
= expected rootSelector
Proposal (A)
Not supported
x 1:1-1:1 Start
| @.a
| ^
Errors
unsupported value type <nil> for select, expected map[string]interface{} or []interface{}
path: $ expected
JavaScript (jsonpath-plus)
Unknown value type
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.