JSON_ObjectIsObject
%JSON_ObjectIsObject function
Function
Checks if there is an object in a given field in the JSON object.
Declaration
BOOL %JSON_ObjectIsObject(
INT in handle,
TEXT in field
)Parameters
handle | Handle to parent JSON object. |
field | Field name |
Return value
@TRUE if in given field is object, else @FALSE.
Description
Function checks if there is an object in a given field in the JSON object.
Exception is thrown if handle to JSON object is invalid or field does not exists.
Example
INT _obj
_obj := %JSON_ObjectFromString(ModuleInfo)
BOOL _is_object
_is_object := %JSON_ObjectIsObject(_obj, "client_info")
%JSON_FreeObjectHandle(_obj)