Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

%JSON_ObjectClear function


Function

Clear JSON object.

Declaration


Code Block
languageesl
themeConfluence
%JSON_ObjectClear(
    INT in handle
 )


Parameters


handleHandle to JSON object.


Return value
None


Description

Funcion Function removes all fields from JSON object.

Exception is thrown if handle to object is invalid.

Example


Code Block
languageesl
themeRDark
 INT _obj
 _obj := %JSON_ObjectFromString('{"name":"Jon","surname":"English"}')
 
 %JSON_ObjectClear(_obj)

 %JSON_FreeObjectHandle(_obj)