JSONPostgreSQL only
JSONB_EACH
Expands a JSON object into rows — one row per key–value pair.
Syntax
JSONB_EACH(<json object>)
JSONB_EACH_TEXT(<json object>)
Returns two columns: key — the key name, and value — its value as jsonb, or as text in JSONB_EACH_TEXT. Handy when the keys aren't known in advance: settings, product attributes, arbitrary properties.