json

json_array_elements

Expands a top-level array into one JSON value per row.

Formal Syntax & Structure

sql syntaxsql
json_array_elements(json)

Working Example

Example Snippetsql
SELECT value::text FROM json_array_elements('[7,null]') WITH ORDINALITY AS t(value,n) ORDER BY n;
SQL Reference