Check if there exists a field with a given name in the JSON object.
BOOL %JSON_ObjectHasField( INT in handle, TEXT in field )
@TRUE if given field exists in JSON object, else @FALSE.
Function checks if there exists a field with a given name in the JSON object.
Exception is thrown if handle to JSON object is invalid.
INT _obj _obj := %JSON_ObjectFromString(ModuleInfo) BOOL _hasInfo _hasInfo := %JSON_ObjectHasField(_obj, "client_info") %JSON_FreeObjectHandle(_obj)
Related pages:
JSON format manipulation functionsFunction arguments - types
Pridať komentár
Pridať komentár