JSON_ObjectRemoveField

JSON_ObjectRemoveField

%JSON_ObjectRemoveField function


Function

Removes a given field from the JSON object

Declaration

%JSON_ObjectRemoveField( INT in handle, TEXT in field )

Parameters

handle

Handle to parent JSON object.

field

Field name

Return value

None

Description

Function removes a given field from the JSON object

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

Example

INT _obj _obj := %JSON_ObjectFromString('{"values":[1,2,3]}') %JSON_ObjectRemoveField(_obj, "values") %JSON_FreeObjectHandle(_obj)