json

JSON #>

Extracts a nested value using path components interpreted as keys or array indexes.

Formal Syntax & Structure

sql syntaxsql
json_or_jsonb #> text[]

Working Example

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