json
JSONB ?|
Checks whether any supplied string exists as a top-level key or string array element.
Formal Syntax & Structure
sql syntaxsql
jsonb ?| text[]Working Example
Example Snippetsql
SELECT '{"a":7}'::jsonb ?| ARRAY['a','b'];Checks whether any supplied string exists as a top-level key or string array element.
jsonb ?| text[]SELECT '{"a":7}'::jsonb ?| ARRAY['a','b'];