Open Scratch-net opened 4 hours ago
In the json-path-comparison project, this does look like it should work per this example (which does indeed err in jsonpath-plus): https://cburgmer.github.io/json-path-comparison/results/filter_expression_with_subpaths_deeply_nested.html
PRs welcome.
Describe the bug
This error gets thrown if match field does not exist
Code sample or steps to reproduce
//fails
$.items[?(@.name.match(/.*oe/))]
//only way to make it work
$.items[?(@.name && @.name.match(/.*oe/))]
Console error or logs
Error: jsonPath: Cannot read properties of undefined (reading 'match'): @.name.match(/.*abc/)
Expected behavior
no error gets thrown, no results returned
Environment (IMPORTANT)
Desktop**