json
json_each
Expands a top-level object into key text and JSON value columns.
Formal Syntax & Structure
sql syntaxsql
json_each(json)Working Example
Example Snippetsql
SELECT key, value::text FROM json_each('{"b":2,"a":1}') ORDER BY key;Expands a top-level object into key text and JSON value columns.
json_each(json)SELECT key, value::text FROM json_each('{"b":2,"a":1}') ORDER BY key;