Function cJSON_IsBool

Synopsis

#include <cJSON.h>

cJSON_bool cJSON_IsBool(const cJSON *const item)

Description

No description yet.

Mentioned in

Source

Lines 2908-2916 in cJSON.c. Line 186 in cJSON.h.

CJSON_PUBLIC(cJSON_bool) cJSON_IsBool(const cJSON * const item)
{
    if (item == NULL)
    {
        return false;
    }

    return (item->type & (cJSON_True | cJSON_False)) != 0;
}





Add Discussion as Guest

Log in