JSON_OBJECT_AGG
Overview
Aggregates key-value pairs into a single JSON object and returns a STRING.
Syntax
Parameters
<key>: STRING type, the key of the JSON object.<value>: Any type, the value of the JSON object.
Examples
Related Documentation
- JSON_ARRAY_AGG — aggregates into a JSON array
- JSON_MERGE_AGG
- MAP_AGG — aggregates into a MAP type
