Porovnávané verzie

Kľúč

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

%JSON_ArrayIsValue function


Function

Checks if there is a value at the given index in the JSON array.

Declaration


Blok kódu
languageesl
themeConfluence
BOOL %JSON_ArrayIsValue(
    INT in handle, 
    INT in index
 )


Parameters


handleHandle to parent JSON array.
indexIndex


Return value

@TRUE if at given index is value of type BOOL, INT, REAL, TEXT or invalid value, else @FALSE.

Description

Function checks if there is a value of type BOOL, INT, REAL, TEXT or invalid value at the given index in the JSON array.

If the index is invalid or the handle on the JSON field array is invalid, an exception is thrown.

Example


Blok kódu
languageesl
themeRDark
 INT _arr
 _arr := %JSON_ArrayFromString("[[1,2,3],{},514]")
 
 BOOL _is_value
 _is_value := %JSON_FreeArrayHandle(_arr, 3)

 %JSON_DeleteArray(_arr)