Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

%JSON_ArrayGetLength function


Function

Get Returns the number (gets length) of elements in a JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
INT %JSON_ArrayGetLength(
    INT in handle
 )


Parameters


handleHandle to JSON array.


Return value

Number The number of items in a JSON array.

Description

Function get length of The function returns the number of elements in the specified JSON array.

Exception is thrown if handle to If the handle on the JSON array is invalid, an exception is thrown.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_ArrayFromString('[[1,2,3],[4,5,6]]')
 
 INT _length
 _length := %JSON_ArrayGetLength(_arr)

 %JSON_FreeArrayHandle(_arr)