Porovnávané verzie

Kľúč

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

%JSON_ObjectRemoveField function


Function

Remove Removes a given field from the JSON object

Declaration


Blok kódu
languageesl
themeConfluence
%JSON_ObjectRemoveField(
    INT in handle, 
    TEXT in field
 )


Parameters


handleHandle to parent JSON object.
fieldField name


Return value

None

Description

Function remove removes a given field from the JSON object

Exception is thrown if handle to JSON object is invalid or field does not exists.

Example


Blok kódu
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"values":[1,2,3]}')
 
 %JSON_ObjectRemoveField(_obj, "values")

 %JSON_FreeObjectHandle(_obj)