I want to do something like this
SELECT t.*
FROM table t
WHERE json_array_elements(t.data->'other_field'->my_array) && ARRAY['some_values']
But I can't, due to this error
ERROR: set-returning functions are not allowed in WHERE
I searched a lot for a solution without using other joins or stuff like that.
So how can I do something like this in query as less complex as it can be?