JSONPath
JSONPath copied to clipboard
Filter Expression With Subpaths
Test Data:
[
{
"address": {
"city": "Berlin"
}
},
{
"address": {
"city": "London"
}
}
]
Selector:
$[?(@.address.city=='Berlin')]
Result:
--- Expected
+++ Actual
@@ @@
-'[{"address":{"city":"Berlin"}}]'
+'[]'
More information: https://cburgmer.github.io/json-path-comparison/results/filter_expression_with_subpaths