json

JSONB ?

Checks for a top-level object key or string array element, not nested keys.

Formal Syntax & Structure

sql syntaxsql
jsonb ? text

Working Example

Example Snippetsql
SELECT '{"a":{"b":7}}'::jsonb ? 'b';
SQL Reference