json

JSON ->>

Extracts a field or array element as text; JSON null and missing values yield SQL NULL.

Formal Syntax & Structure

sql syntaxsql
json_or_jsonb ->> key_or_index

Working Example

Example Snippetsql
SELECT '{"a":"x"}'::json ->> 'a';
SQL Reference