FunctionsJSON
json_object_agg
Builds a JSON object by grouping key/value pairs; when the same key repeats, the last value wins.
json_object_agg(…) → JSONKind · aggregate
Builds a JSON object by grouping key/value pairs; when the same key repeats, the last value wins.
Part of the JSON family.