Développeur
countJArray
Compter les éléments d’un tableau JSON.
Compter les éléments d’un tableau JSON.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Compter les éléments d’un tableau JSON.
developer:countJArray(jsonArray)
| Nom | Type | Description |
|---|---|---|
jsonArray | string | Chaîne de tableau JSON. |
| Type | Description |
|---|---|
int | Nombre d’éléments du tableau. |
local json = '[1,2,3,4,5]'
local count = countJArray(json)
global:printMessage("Taille du tableau : " .. count)