{"Entry":{"collection":"func","key":"json-array-length","name":"json_array_length","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"9.2","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"9.3"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"546eaf08b4ae0ee110781e88e3a8b7a2851f1ee181ff2942fa953dc65f1b8ac6","first_version":"9.3","group":"json","group_label":"Json Functions And Operators","groups":["json"],"imported_at":"2026-09-14T21:49:48.783453+08:00","last_version":"20","name":"json_array_length","name_key":"json_array_length","position":16005,"present_in":["9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"signature":"json_array_length ( json ) → integer","signature_count":1,"slug":"json-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":"json-array-length","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"json-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\"\u003ejson_array_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"json_array_length ( json ) → integer","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-JSON-PROCESSING-TABLE","file":"functions-json.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"json-array-length","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"json_array_length","Summary":"返回顶层JSON数组中的元素数量。","BodyHTML":"返回顶层JSON数组中的元素数量。\u003cpre\u003ejson_array_length ( json ) → integer\u003c/pre\u003e返回顶层JSON数组中的元素数量。","SourceRevision":"1b5ca64c","ContentHash":"97b01c74a18818bf68069e71afcdff435c5c9c56976c708bf161f6fbb7eb1a88","Payload":{"description_zh":"返回顶层JSON数组中的元素数量。","description_zh_html":"返回顶层JSON数组中的元素数量。","signatures":[{"description_zh":"返回顶层JSON数组中的元素数量。","description_zh_html":"返回顶层JSON数组中的元素数量。","returns":"integer","text":"json_array_length ( json ) → 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.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"903bb868fcc4edd44a6a203822234af4ac3337be1831068d13beeb79361778d0","Text":"json_array_length ( json ) → 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\"\u003ejson_array_length\u003c/code\u003e ( \u003ccode class=\"type\"\u003ejson\u003c/code\u003e ) → \u003ccode class=\"returnvalue\"\u003einteger\u003c/code\u003e","returns":"integer","text":"json_array_length ( json ) → integer","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
