{"Entry":{"collection":"func","key":"json-agg","name":"json_agg","aliases":[],"metadata":{"changed_in":["17"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.3"},{"descriptions_changed":true,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"},{"descriptions_changed":false,"doc_overhaul":false,"from":"16","group_changed":null,"signatures":{"added":["json_agg ( anyelement ORDER BY input_sort_columns ) → json"],"removed":["json_agg ( anyelement ) → json"]},"status":"changed","to":"17"}],"content_hash":"88855f8a0e890e5ace54334412ce6c797e544ca1b5f70af98ba63f0885032a6c","derived_content_hash":"9df8a415d914137fb69be2f0316694c92b1d081f4fb4edc7d743d2e797643400","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:f69ea696e7b63c839ea7717fdaea9fb28f91987ae16f35b72f184e4cf1c973e8","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.3","group":"aggregate","group_label":"Aggregate Functions","groups":["aggregate"],"imported_at":"2026-09-14T21:49:48.85306+08:00","last_version":"20","name":"json_agg","name_key":"json_agg","position":21016,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:ea299d1a459d6a9c9690a34c35c8db999d6f8a50fbe3d23734496bf70384e8ce","receipt_sha256":"1bc3589e4896bc8bc996efab4e46b86baaa43c34209dd4a4ca27dd1b358c7d94","repair":"wiki-repair-20261023"},"signature":"json_agg ( anyelement ORDER BY input_sort_columns ) → json","signature_count":1,"slug":"json-agg","source_rev":"wiki-repair-20261023:f69ea696e7b63c839ea7717fdaea9fb28f91987ae16f35b72f184e4cf1c973e8","summary":"Collects all the input values, including nulls, into a JSON array.","summary_zh":""}},"Definition":{"Collection":"func","Key":"json-agg","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-agg","SourceRevision":"wiki-repair-20261023:f69ea696e7b63c839ea7717fdaea9fb28f91987ae16f35b72f184e4cf1c973e8","Facts":{"description":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","description_html":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e.","description_zh":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 to_json 或 to_jsonb 将值转换为 JSON。","description_zh_html":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e 或 \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e 将值转换为 JSON。","doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","version":"18.7"},{"file":"functions-aggregate.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"0bf7506d27b71666fc74840a21a8f77c8a92735174f1d05033865961722e457c","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"aggregate","group_label":"聚合函数","lang":"en","layout":"table-new","pages":["functions-aggregate.html"],"prose_only":false,"signatures":[{"description":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","description_html":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e.","description_zh":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 to_json 或 to_jsonb 将值转换为 JSON。","description_zh_html":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e 或 \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e 将值转换为 JSON。","examples":[],"html":"\u003ccode class=\"function\"\u003ejson_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_agg ( anyelement ORDER BY input_sort_columns ) → json","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-aggregate.html","sha256":"68da7af09e2749a855188bbbff99ae036fc7eece4e19b8e048baffd28aa3ca59"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-AGGREGATE-TABLE","file":"functions-aggregate.html","sha256":"31d3dcd36ef353484b4b3535f9f0d1cc239c3910146257fe5178f99b90b501e2","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-agg","SourceDatabase":"center","Version":"18","Locale":"en","Title":"json_agg","Summary":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","BodyHTML":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode\u003eto_json\u003c/code\u003e or \u003ccode\u003eto_jsonb\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:f69ea696e7b63c839ea7717fdaea9fb28f91987ae16f35b72f184e4cf1c973e8","ContentHash":"3449130ed2e6188367db1b47994d416d35db982a15510c368c8eb10d57402222","Payload":{"description":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","description_html":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e.","signatures":[{"description":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","description_html":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e.","description_zh":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 to_json 或 to_jsonb 将值转换为 JSON。","description_zh_html":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e 或 \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e 将值转换为 JSON。","examples":[],"html":"\u003ccode class=\"function\"\u003ejson_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_agg ( anyelement ORDER BY input_sort_columns ) → json","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"e485a508804bba4ed98559541d3acebbd9bcb925910938db7330d771667c261c","Text":"json_agg ( anyelement ORDER BY input_sort_columns ) → json","Returns":"json","Payload":{"description":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per to_json or to_jsonb.","description_html":"Collects all the input values, including nulls, into a JSON array. Values are converted to JSON as per \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e or \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e.","description_zh":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 to_json 或 to_jsonb 将值转换为 JSON。","description_zh_html":"将所有输入值（包括空值）收集到一个 JSON 数组中。根据 \u003ccode class=\"function\"\u003eto_json\u003c/code\u003e 或 \u003ccode class=\"function\"\u003eto_jsonb\u003c/code\u003e 将值转换为 JSON。","examples":[],"html":"\u003ccode class=\"function\"\u003ejson_agg\u003c/code\u003e ( \u003ccode class=\"type\"\u003eanyelement\u003c/code\u003e \u003ccode class=\"literal\"\u003eORDER BY\u003c/code\u003e \u003ccode class=\"literal\"\u003einput_sort_columns\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejson\u003c/code\u003e","returns":"json","text":"json_agg ( anyelement ORDER BY input_sort_columns ) → json","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
