Dot notation without root

Setup

Selector: .key

{
  "key": "value"
}

Results

Other responses

Bash (JSONPath.sh)

[
  "value"
]

C (json-glib)

[
  "value"
]

Clojure (json-path) ¹

null

Cpp (jsoncons)

Not supported

Expected '$' or function expression at line 1 and column 1

Dart (json_path)

Not supported

Instance of 'ParserException': "$" expected (at 1:1)

Elixir (ExJsonPath)

[
  "value"
]

Elixir (jaxon)

[]

Elixir (warpath) ¹

Not supported

Parser error: Invalid token on line 1, syntax error before: <<".">>

Erlang (ejsonpath)

Not supported

syntax error before: '.'

Golang (github.com-PaesslerAG-jsonpath) ¹

Not supported

parsing error: .key	:1:1 - 1:2 unexpected "." while scanning extensions

Golang (github.com-ohler55-ojg)

[
  "value"
]

Golang (github.com-spyzhov-ajson)

[]

Golang (github.com-vmware-labs-yaml-jsonpath)

[
  "value"
]

Haskell (jsonpath)

[
  "value"
]

JavaScript (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

JavaScript (brunerd)

Not supported

JavaScript (jsonpath)

Not supported

Parse error on line 1:
.key
^
Expecting 'DOLLAR', 'STAR', 'IDENTIFIER', 'SCRIPT_EXPRESSION', 'INTEGER', 'END', got 'DOT'

JavaScript (jsonpath-plus)

[]

JavaScript (jsonpathly)

Not supported

missing '$' at '.'

Java (com.github.jsurfer)

Not supported

org.antlr.v4.runtime.misc.ParseCancellationException

Java (com.jayway.jsonpath) ¹ ³

[
  "value"
]

Kotlin (com.nfeld.jsonpathkt) ¹

"value"

Objective-C (SMJJSONPath) ¹ ³

[
  "value"
]

PHP (Goessner) ²

Not found

jsonpath returned false, this might indicate an error

PHP (galbar-jsonpath)

Not supported

Invalid JSONPath error: 'Error in JSONPath near '.key''

PHP (remorhaz-jsonpath)

Not supported

Error: 'Failed to build AST from JSONPath query: .key'

PHP (softcreatr-jsonpath)

[
  "value"
]

Perl (JSON-Path)

[
  "value"
]

Python (jsonpath) ²

Not found

jsonpath returned false, this might indicate an error

Python (jsonpath-ng)

Not supported

JsonPathParserError('Parse error at 1:0 near token . (.)')

Python (jsonpath-rw)

Not supported

Exception('Parse error at 1:0 near token . (.)')

Python (jsonpath2)

Not supported

line 1:0 missing '$' at '.'
ValueError("line 1:0 missing '$' at '.'")

Python (python-jsonpath)

[
  "value"
]

Raku (JSON-Path)

[
  "value"
]

Ruby (jsonpath)

[
  "value"
]

Rust (jsonpath)

Not supported

parsing error

Rust (jsonpath_lib)

Not supported

path error: 
.key
^

Rust (serde_json_path)

Not supported

at position 0, parser error

Scala (jsonpath)

Not supported

JPError('$' expected but '.' found)

Swift (Sextant)

[
  "value"
]

dotNET (Json.NET)

[
  "value"
]

dotNET (JsonCons.JsonPath)

Not supported

Syntax error

dotNET (JsonPath.Net)

Not supported

Path must start with '$' or '@'

dotNET (JsonPathLib)

[]

dotNET (Manatee.Json)

Not supported

Start token not found. Path up to error: ''

Errors

Golang (github.com-bhmj-jsonslice) ¹ ³

path: $ expected

Golang (github.com-oliveagle-jsonpath) ¹

should start with '$'

Rust (jsonpath_plus)

Error Parsing JSON Path:
.key
panic occurred

Footnotes