Check jsonpath


Depending of the datasets , i could have for example two differents response from the server

My question is it possible to check a jsonpath between two possible content

for example check that

jsonPath("$…foo OR $…foo2").exists

In the same way we check between two http response with, 304)