{"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","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"],"signature":"jsonb_array_length ( jsonb ) → integer","signature_count":1,"slug":"jsonb-array-length","source_rev":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"2026-09-14T13:14:25.684213+00:00@99e6866c","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":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"},"group":"json","group_label":"Json Functions And Operators","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":"","description_zh_html":"","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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"jsonb-array-length","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"jsonb_array_length","Summary":"返回顶层JSON数组中的元素数量。","BodyHTML":"返回顶层JSON数组中的元素数量。\u003cpre\u003ejsonb_array_length ( jsonb ) → integer\u003c/pre\u003e返回顶层JSON数组中的元素数量。","SourceRevision":"1b5ca64c","ContentHash":"3196282c95d0feb3aa12f94fcd8704270f759897dfff049a0720c7ec2cc76d52","Payload":{"description_zh":"返回顶层JSON数组中的元素数量。","description_zh_html":"返回顶层JSON数组中的元素数量。","signatures":[{"description_zh":"返回顶层JSON数组中的元素数量。","description_zh_html":"返回顶层JSON数组中的元素数量。","returns":"integer","text":"jsonb_array_length ( jsonb ) → integer","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":"","description_zh_html":"","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
