Closed 36ve closed 3 weeks ago
I don't know what the current "standard" behavior is, but you can work around this with:
"$..[?(@ && @.MonitorAlarmStateId != 0 && @.MonitorType == 4)].AlarmId"
I'm also encountering this issue. Workaround from @brettz9 fixed this issue.
It is fixed in 9.0.0 using ignoreEvalErrors
Check: https://github.com/JSONPath-Plus/JSONPath/issues/218#issuecomment-2383950924
Describe the bug
jsonPath: Cannot read properties of null
Code sample or steps to reproduce
Console error or logs
Expected behavior
It should be able to return Data noted by that JSONPath however it will error out as the Query section appears to break it. It will function when there is no Query Section.
Expected result
The full JSONPath with query section will work.
Environment (IMPORTANT)
^4.0.0
The expected result worksAdditional context