Using only one JSONPath expression, is it possible to do some kind of "OR" or "||" operator. For example, these two Boolean JSONPath expressions work to check the severity of the JSON log file:
$..log[?(@.severity == 'WARN')] $..log[?(@.severity == 'Error')]
But I would like to do something logically similar to:
$..log[?(@.severity == 'WARN' or @.severity == 'Error')] //this is not correct
Is there any way to do this?
source share