%JSON_ObjectClear function


Function

Clear JSON object.

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


Description

Function removes all fields from JSON object.

Exception is thrown if handle to object is invalid.

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

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