{"Entry":{"collection":"func","key":"jsonb-build-object","name":"jsonb_build_object","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.4","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.5"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"da9d65de2da796fd6733ddfd8dc74795964b282c4082bc0884e45c129d5258f2","derived_content_hash":"358ceb4e71187c06e03473f48596b360a9707b5350dea04741c7f7c57ad7f7f7","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:55de0f2cf1da20551c7b696881eb3e1f883817240da0869f493b0e39520d599a","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.5","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.800107+08:00","last_version":"20","name":"jsonb_build_object","name_key":"jsonb_build_object","position":16030,"present_in":["9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"repair_provenance":{"original_source_revision":"2026-09-14T13:14:25.684213+00:00@99e6866c","receipt_sha256":"1aa4a2106d1321cc6b0f470c226cdeb3773bd2da04956ba812e3e5cbeb904808","repair":"wiki-repair-20261023"},"signature":"jsonb_build_object ( VARIADIC \"any\" ) → jsonb","signature_count":1,"slug":"jsonb-build-object","source_rev":"wiki-repair-20261023:55de0f2cf1da20551c7b696881eb3e1f883817240da0869f493b0e39520d599a","summary":"Builds a JSON object out of a variadic argument list.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-build-object","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-build-object","SourceRevision":"wiki-repair-20261023:55de0f2cf1da20551c7b696881eb3e1f883817240da0869f493b0e39520d599a","Facts":{"description":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","description_html":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. 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.","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 进行转换。","doc":{"anchor":"FUNCTIONS-JSON-CREATION-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","version":"18.7"},{"file":"functions-json.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"31b98fa7f00387abf441728c31918bfe8b368642bceeb8bba88a73c3fbd607de","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"json","group_label":"JSON 函数和操作符","lang":"en","layout":"table-new","pages":["functions-json.html"],"prose_only":false,"signatures":[{"description":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","description_html":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. 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.","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 进行转换。","examples":[{"expr":"json_build_object('foo', 1, 2, row(3,'bar'))","result":"{\"foo\" : 1, \"2\" : {\"f1\":3,\"f2\":\"bar\"}}"}],"html":"\u003ccode class=\"function\"\u003ejsonb_build_object\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"jsonb_build_object ( VARIADIC \"any\" ) → jsonb","zh_from":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-json.html","sha256":"a412feb14a229f1d9f14fa2d7735255aa297d5eb8f2971d744d9dfee659c7cca"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-CREATION-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-build-object","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_build_object","Summary":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","BodyHTML":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per \u003ccode\u003eto_json\u003c/code\u003e or \u003ccode\u003eto_jsonb\u003c/code\u003e.","SourceRevision":"wiki-repair-20261023:55de0f2cf1da20551c7b696881eb3e1f883817240da0869f493b0e39520d599a","ContentHash":"d94d7e048fdc8fee68d75539cb67b63c54bf4f6e75613d19165c6d2334d6dcc4","Payload":{"description":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","description_html":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. 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.","signatures":[{"description":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","description_html":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. 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.","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 进行转换。","examples":[{"expr":"json_build_object('foo', 1, 2, row(3,'bar'))","result":"{\"foo\" : 1, \"2\" : {\"f1\":3,\"f2\":\"bar\"}}"}],"html":"\u003ccode class=\"function\"\u003ejsonb_build_object\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"jsonb_build_object ( VARIADIC \"any\" ) → jsonb","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"ca8537cc46c6f470c1fe616839997bd3cf7575076ad380c522b923e3fcfe2f27","Text":"jsonb_build_object ( VARIADIC \"any\" ) → jsonb","Returns":"jsonb","Payload":{"description":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. Key arguments are coerced to text; value arguments are converted as per to_json or to_jsonb.","description_html":"Builds a JSON object out of a variadic argument list. By convention, the argument list consists of alternating keys and values. 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.","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 进行转换。","examples":[{"expr":"json_build_object('foo', 1, 2, row(3,'bar'))","result":"{\"foo\" : 1, \"2\" : {\"f1\":3,\"f2\":\"bar\"}}"}],"html":"\u003ccode class=\"function\"\u003ejsonb_build_object\u003c/code\u003e ( \u003ccode class=\"literal\"\u003eVARIADIC\u003c/code\u003e \u003ccode class=\"type\"\u003e\"any\"\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003ejsonb\u003c/code\u003e","returns":"jsonb","text":"jsonb_build_object ( VARIADIC \"any\" ) → jsonb","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
