Function cJSON_IsObject

Synopsis

#include <cJSON.h>

cJSON_bool cJSON_IsObject(const cJSON *const item)

Description

No description yet.

Mentioned in

Source

Lines 2957-2965 in cJSON.c. Line 191 in cJSON.h.

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

    return (item->type & 0xFF) == cJSON_Object;
}





Add Discussion as Guest

Log in