json

JSON #>>

Extracts a nested value as SQL text rather than JSON.

Formal Syntax & Structure

sql syntaxsql
json_or_jsonb #>> text[]

Working Example

Example Snippetsql
SELECT '{"a":[7,9]}'::json #>> '{a,1}';
SQL Reference