{"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","derived_content_hash":"e5c2c477e22ae6ea383e4496616740bd126fa181bd1fd14c6296b9dbfc6b55a0","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:e92e77cc3eeade462517f76a0b4c760c70b7102225781c4d864d712ca68f93de","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:bb5f4a2b29a4d1e644ffcede62544d2dbc0c2598e2d724e2b4abf6aa3261bc57","receipt_sha256":"7636002195c82c3107ef90ddb1e5e8a09b8319594ccd11ea14b127aa1954afd9","repair":"wiki-repair-20261023"},"signature":"json_array_length ( json ) → integer","signature_count":1,"slug":"json-array-length","source_rev":"wiki-repair-20261023:e92e77cc3eeade462517f76a0b4c760c70b7102225781c4d864d712ca68f93de","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":"wiki-repair-20261023:e92e77cc3eeade462517f76a0b4c760c70b7102225781c4d864d712ca68f93de","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\"\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":"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":"json-array-length","SourceDatabase":"center","Version":"18","Locale":"en","Title":"json_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:e92e77cc3eeade462517f76a0b4c760c70b7102225781c4d864d712ca68f93de","ContentHash":"278aa4c1545e953650aa81a4fc678f31e4f3d69b4a31db8e62f1679f42edb469","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\"\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":"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":"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":"返回顶层 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\"\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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
