Check jsonpath

Hello

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 status.in(200, 304)

Regards