HTTP & JSON
jsonArrayCount
$jsonArrayCount[]
$jsonArrayCount returns the number of elements in a JSON array. This is useful for pagination, boundary checks, conditional logic based on array size, or displaying counts to users. For iteration over all elements, prefer $jsonForEach.
Syntax
bdfd
$jsonArrayCount[key]
Examples
Count Items in JSON Array
$jsonParse[{"items":["Sword","Shield","Potion"]}]
$title[Inventory Item Count]
$description[You have **$jsonArrayCount[items]** items in your bag.]
$color[#5865F2]
$sendMessage[]