{"Entry":{"collection":"func","key":"json-object-agg-unique","name":"json_object_agg_unique","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"15","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"16"}],"content_hash":"aa99d5b222dace39368abddaf960090387480b63aa9337c35181a539d1f5b844","first_version":"16","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-14T21:49:48.855977+08:00","last_version":"20","name":"json_object_agg_unique","name_key":"json_object_agg_unique","position":21021,"present_in":["16","17","18","19","20"],"signature":"json_object_agg_unique ( key \"any\", value \"any\" ) → json","signature_count":1,"slug":"json-object-agg-unique","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","summary":"Collects all the key/value pairs into a JSON object.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-object-agg-unique","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-object-agg-unique","SourceRevision":"2026-09-14T13:14:25.684213+00:00@99e6866c","Facts":{"description":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_html":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"},"group":"aggregate","group_label":"Aggregate Functions","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_html":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ejson_object_agg_unique\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ekey\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_object_agg_unique ( key \"any\", value \"any\" ) → json","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-object-agg-unique","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_object_agg_unique","Summary":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照to_json或to_jsonb进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","BodyHTML":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照\u003ccode\u003eto_json\u003c/code\u003e或\u003ccode\u003eto_jsonb\u003c/code\u003e进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。\u003cpre\u003ejson_object_agg_unique ( key \u0026#34;any\u0026#34;, value \u0026#34;any\u0026#34; ) → json\u003c/pre\u003e将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照\u003ccode\u003eto_json\u003c/code\u003e或\u003ccode\u003eto_jsonb\u003c/code\u003e进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","SourceRevision":"ca936764","ContentHash":"d8cab2f9fc1084d004a53d125c13ea3dd9bfbbfbc851cebe679f08776c20b11c","Payload":{"description_zh":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照to_json或to_jsonb进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","description_zh_html":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照\u003ccode class=\"function\"\u003eto_json\u003c/code\u003e或\u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","signatures":[{"description_zh":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照to_json或to_jsonb进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","description_zh_html":"将所有键/值对收集到一个JSON对象中。键参数强制转换为文本；值参数按照\u003ccode class=\"function\"\u003eto_json\u003c/code\u003e或\u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e进行转换。值可以为空，但键不能为空。如果存在重复键，则会抛出错误。","returns":"json","text":"json_object_agg_unique ( key \"any\", value \"any\" ) → json","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["16","17","18","19","20"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"0966c2e0f27cd7513f6afe4a23b163386dadd709ddbfcdd110e59b4aa5d9de73","Text":"json_object_agg_unique ( key \"any\", value \"any\" ) → json","Returns":"json","Payload":{"description":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_html":"Collects all the key/value pairs into a JSON object. Key arguments are coerced to text; value arguments are converted as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e. Values can be null, but keys cannot. If there is a duplicate key an error is thrown.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003ejson_object_agg_unique\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003ekey\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003evalue\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_object_agg_unique ( key \"any\", value \"any\" ) → json","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
