{"Entry":{"collection":"func","key":"jsonb-array-length","name":"jsonb_array_length","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"bdd65b8784787fcdb47d7ae17a26749b609a133599294b4fd47f309d524835f6","derived_content_hash":"4a35ae53542e44dbe983d286457969505569101f71bfcf70e3e30011e35a8c9f","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:5950e41d12867efe0f85439accf3acef5b81c6fca35c76615118f5c7bf290f8b","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"9.4","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.798819+08:00","last_version":"20","name":"jsonb_array_length","name_key":"jsonb_array_length","position":16028,"present_in":["9.4","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":"4a175ec2f1bc82196d5ae88bc6d9a7b67dc45d18c733faa9de66392d310b2b30","repair":"wiki-repair-20261023"},"signature":"jsonb_array_length ( jsonb ) → integer","signature_count":1,"slug":"jsonb-array-length","source_rev":"wiki-repair-20261023:5950e41d12867efe0f85439accf3acef5b81c6fca35c76615118f5c7bf290f8b","summary":"Returns the number of elements in the top-level JSON array.","summary_zh":""}},"Definition":{"Collection":"func","Key":"jsonb-array-length","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"jsonb-array-length","SourceRevision":"wiki-repair-20261023:5950e41d12867efe0f85439accf3acef5b81c6fca35c76615118f5c7bf290f8b","Facts":{"description":"Returns the number of elements in the top-level JSON array.","description_html":"Returns the number of elements in the top-level JSON array.","description_zh":"返回顶层 JSON 数组中的元素数量。","description_zh_html":"返回顶层 JSON 数组中的元素数量。","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-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":"Returns the number of elements in the top-level JSON array.","description_html":"Returns the number of elements in the top-level JSON array.","description_zh":"返回顶层 JSON 数组中的元素数量。","description_zh_html":"返回顶层 JSON 数组中的元素数量。","examples":[{"expr":"json_array_length('[1,2,3,{\"f1\":1,\"f2\":[5,6]},4]')","result":"5"},{"expr":"jsonb_array_length('[]')","result":"0"}],"html":"\u003ccode class=\"function\"\u003ejsonb_array_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"jsonb_array_length ( jsonb ) → integer","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-PROCESSING-TABLE","file":"functions-json.html","sha256":"060b67147827d70ddcf5948833ddfbeada321366476016c8b8b7d68afda8045c","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-array-length","SourceDatabase":"center","Version":"18","Locale":"en","Title":"jsonb_array_length","Summary":"Returns the number of elements in the top-level JSON array.","BodyHTML":"Returns the number of elements in the top-level JSON array.","SourceRevision":"wiki-repair-20261023:5950e41d12867efe0f85439accf3acef5b81c6fca35c76615118f5c7bf290f8b","ContentHash":"13f45e05f7301d4c0ad75887eb4322f3bcf109c3817d85d0fa2cc07e6bb5c924","Payload":{"description":"Returns the number of elements in the top-level JSON array.","description_html":"Returns the number of elements in the top-level JSON array.","signatures":[{"description":"Returns the number of elements in the top-level JSON array.","description_html":"Returns the number of elements in the top-level JSON array.","description_zh":"返回顶层 JSON 数组中的元素数量。","description_zh_html":"返回顶层 JSON 数组中的元素数量。","examples":[{"expr":"json_array_length('[1,2,3,{\"f1\":1,\"f2\":[5,6]},4]')","result":"5"},{"expr":"jsonb_array_length('[]')","result":"0"}],"html":"\u003ccode class=\"function\"\u003ejsonb_array_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"jsonb_array_length ( jsonb ) → integer","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"38e36d190f08f5049e2e48a66784de91e0464df688b6334c36d796a180cff2cb","Text":"jsonb_array_length ( jsonb ) → integer","Returns":"integer","Payload":{"description":"Returns the number of elements in the top-level JSON array.","description_html":"Returns the number of elements in the top-level JSON array.","description_zh":"返回顶层 JSON 数组中的元素数量。","description_zh_html":"返回顶层 JSON 数组中的元素数量。","examples":[{"expr":"json_array_length('[1,2,3,{\"f1\":1,\"f2\":[5,6]},4]')","result":"5"},{"expr":"jsonb_array_length('[]')","result":"0"}],"html":"\u003ccode class=\"function\"\u003ejsonb_array_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejsonb\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"jsonb_array_length ( jsonb ) → integer","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
