Porovnávané verzie

Kľúč

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

%JSON_ArrayRemoveItem function


Function

Remove Removes an item at the given index from the JSON array.

Declaration


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


Parameters


handleHandle to JSON array.
indexIndex


Return value

None

Description

Function remove removes an item at the given index from the JSON array

Exception is thrown if handle to If the handle on the JSON array is invalid or the index is out of rangeis invalid, an exception is thrown.

Example


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

 %JSON_FreeArrayHandle(_arr)