%JSON_ObjectClear function


Function

Clears the JSON object.

Declaration
%JSON_ObjectClear(
    INT in handle
 )
Parameters
handleHandle to JSON object.
Return value
None


Description

Function removes all fields from the JSON object.

Exception is thrown if the handle to the object is invalid.

Example
 INT _obj
 _obj := %JSON_ObjectFromString('{"name":"Jon","surname":"English"}')
 
 %JSON_ObjectClear(_obj)

 %JSON_FreeObjectHandle(_obj)
Napíšte komentár