We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The recursive descent operator does not appear to be implemented.
For example, $..name should find $.name, but also $.children[0].name, $.children.children.children[0].name, ...
$..name
$.name
$.children[0].name
$.children.children.children[0].name
In test case form:
@Test fun recursiveDescentTest() { val obj = buildJsonObject { put("name", "Name #1") put("addr", "Street 1") putJsonArray("children") { addJsonObject { put("name", "Name #2") } } } assertEquals(setOf("Name #1", "Name #2"), JsonPath.pathEvery("$..name").getAll(obj).map { it.toString() }.toSet()) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The recursive descent operator does not appear to be implemented.
For example,
$..name
should find$.name
, but also$.children[0].name
,$.children.children.children[0].name
, ...In test case form:
The text was updated successfully, but these errors were encountered: