Page tree
Skip to end of metadata
Go to start of metadata

%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)
Write a comment…