PostgreSQL JSON query array against multiple values
There is a way: combine the containment operator @&gt; with the ANY construct:
SELECT d
FROM   grp
WHERE  d-&gt;'customers' @&gt; ANY (ARRAY ['[{&quot;id&quot;:&quot;1&quot;}]', '[{&quot;id&quot;:&quot;5&quot;}]']::jsonb[]);

Or:
...
WHERE d-&gt;'customers' @&gt; ANY ('{&quot;[{\&quot;id\&quot;: \&quot;1\&quot;}]&quot;,&quot;[{\&quot;id\&quot;: \&quot;5\&quot;}]&quot;}'::jsonb[]);

It's essential to cast the array to jsonb[] explicitly. And note that each element is a JSON array containing an object inside like the operator @&gt; requires. So it's an array of JSON arrays.
You can use an index for this:

Index for finding an element in a JSON array

The manual explicitly states that the operator ?| is for strings matching keys or array elements only (not values):

Do any of the strings in the text array exist as top-level keys or array elements?