json

JSONB ?&

Checks that every 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,"b":9}'::jsonb ?& ARRAY['a','b'];
SQL Reference