json
JSONB ?
Checks for a top-level object key or string array element, not nested keys.
Formal Syntax & Structure
sql syntaxsql
jsonb ? textWorking Example
Example Snippetsql
SELECT '{"a":{"b":7}}'::jsonb ? 'b';Checks for a top-level object key or string array element, not nested keys.
jsonb ? textSELECT '{"a":{"b":7}}'::jsonb ? 'b';