jsonb_each ( jsonb ) → setof record ( key text, value jsonb )Expands the top-level JSON object into a set of key/value pairs.
select * from json_each('{"a":"foo", "b":"bar"}') → key | value
-----+-------
a | "foo"
b | "bar"Expands the top-level JSON object into a set of key/value pairs.
jsonb_each ( jsonb ) → setof record ( key text, value jsonb )Expands the top-level JSON object into a set of key/value pairs.
select * from json_each('{"a":"foo", "b":"bar"}') → key | value
-----+-------
a | "foo"
b | "bar"Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source