json

JSON_TABLE

Projects JSON path matches into typed relational rows. Column paths and error policies control conversion.

Formal Syntax & Structure

sql syntaxsql
JSON_TABLE(context, path COLUMNS (...))

Working Example

Example Snippetsql
SELECT id FROM JSON_TABLE('[{"id":7},{"id":9}]'::jsonb, '$[*]' COLUMNS (id int PATH '$.id')) AS t ORDER BY id;
SQL Reference