DB
FunctionsJSON

json_agg

Collects values in group order and returns a JSON array containing each JSON-mapped row value.

json_agg(…) → JSON

Kind · aggregate

Collects values in group order and returns a JSON array containing each JSON-mapped row value.

Part of the JSON family.