Function cJSON_IsInvalid
Synopsis
#include <cJSON.h>
cJSON_bool cJSON_IsInvalid(const cJSON *const item)
Description
These functions check the type of an item
Mentioned in
- Getting Started / Data Structure
Source
Lines 2877-2885 in cJSON.c. Line 183 in cJSON.h.
CJSON_PUBLIC(cJSON_bool) cJSON_IsInvalid(const cJSON * const item)
{
if (item == NULL)
{
return false;
}
return (item->type & 0xFF) == cJSON_Invalid;
}