Recursive descent

Setup

Selector: $..

[{"a": {"b": "c"}}, [0, 1]]

Results

Other responses

Bash (JSONPath.sh)

[
  "c",
  0,
  1
]

C (json-glib)

Not supported

Unable to compile selector `$..': Missing member name or wildcard after . character

Clojure (json-path) ¹

[
  0,
  1,
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Cpp (jsoncons)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Dart (json_path)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Elixir (ExJsonPath)

Not supported

syntax error before: 

Elixir (jaxon)

[
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ]
]

Elixir (warpath) ¹

Not supported

Parser error: Invalid token on line 1, syntax error before: 

Erlang (ejsonpath)

[
  "c",
  0,
  1,
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Golang (github.com-AsaiYusuke-jsonpath) ²

Not supported

invalid syntax (position=1, reason=unrecognized input, near=..)

Golang (github.com-PaesslerAG-jsonpath) ¹

Not supported

parsing error: $..	:1:4 - 1:4 unexpected EOF while scanning JSON mapper expected "[", Ident or "*"

Golang (github.com-ohler55-ojg)

[
  "c",
  0,
  1,
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Golang (github.com-spyzhov-ajson)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

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

Not supported

child name or array access or filter missing after recursive descent at position 3, following "$.."

Haskell (jsonpath)

Not supported

Invalid JSONPath: $..
 Error: 1:4:
  |
1 | $..
  |    ^
unexpected end of input
expecting '.', '[', or white space

JavaScript (Goessner) ²

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

JavaScript (brunerd)

Not supported

JavaScript (jsonpath)

Not supported

Parse error on line 1:
$..
---^
Expecting 'STAR', 'IDENTIFIER', 'SCRIPT_EXPRESSION', 'INTEGER', 'END', '[', got '1'

JavaScript (jsonpath-plus)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Java (com.jayway.jsonpath) ¹ ³

Not supported

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
com.jayway.jsonpath.InvalidPathException: Path must not end with a '.' or '..'

Kotlin (com.nfeld.jsonpathkt) ¹

[
  [
    0,
    1
  ],
  {
    "a": {
      "b": "c"
    }
  }
]

Objective-C (SMJJSONPath) ¹ ³

Not supported

Path must not end with a '.' or '..'

PHP (Goessner) ²

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

PHP (galbar-jsonpath) ²

Not supported

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

PHP (remorhaz-jsonpath)

Not supported

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

Perl (JSON-Path)

[]

Python (jsonpath) ²

[
  "c",
  0,
  1,
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Python (jsonpath-ng)

Not supported

AttributeError("'NoneType' object has no attribute 'lineno'")

Python (jsonpath-rw)

Not supported

AttributeError("'NoneType' object has no attribute 'lineno'")

Python (jsonpath2)

Not supported

line 1:3 mismatched input '<EOF>' expecting {'*', '[', ID}
ValueError("line 1:3 mismatched input '<EOF>' expecting {'*', '[', ID}")

Raku (JSON-Path)

[
  "c",
  0,
  1,
  [
    0,
    1
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Ruby (jsonpath)

[
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ]
]

Rust (jsonpath)

Not supported

parsing error

Rust (jsonpath_lib)

Not supported

path error: 
$..
^^^

Rust (jsonpath_plus)

[
  "c",
  0,
  1,
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

Scala (jsonpath)

Not supported

JPError(end of input expected)

Swift (Sextant)

Not supported

NOT_SUPPORTED

dotNET (Json.NET)

Not supported

Unexpected end while parsing path.

dotNET (JsonCons.JsonPath)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

dotNET (JsonPath.Net)

Not supported

Index was outside the bounds of the array.

dotNET (JsonPathLib)

[
  [
    0,
    1
  ],
  [
    {
      "a": {
        "b": "c"
      }
    },
    [
      0,
      1
    ]
  ],
  {
    "a": {
      "b": "c"
    }
  },
  {
    "b": "c"
  }
]

dotNET (Manatee.Json)

Not supported

Unrecognized JSON Path element. Path up to error: '$'

JSON (Path_Reference_Implementation)

Not supported

 --> 1:3
  |
1 | $..
  |   ^---
  |
  = expected childName

Proposal (A)

Not supported


x 1:4-1:4 BracketChildren
| $..
|    ^
| x 1:4-1:4 DotChildName
| | $..
| |    ^
| | 
|/  
x 1:2-1:2 RecursiveDescentChildren
| $..
|  ^
x 1:2-1:2 Operator
| $..
|  ^
o 1:1-1:2 Start
  $..
  ^

Errors

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

path: unexpected end of path at 3

Golang (github.com-oliveagle-jsonpath) ¹

expression don't support in filter

Java (com.github.jsurfer)

java.lang.IllegalStateException: deep-scan shouldn't be the last operator.

PHP (softcreatr-jsonpath)

TypeError

Footnotes