Function cJSON_CreateObject

Synopsis

#include <cJSON.h>

cJSON * cJSON_CreateObject(void)

Description

No description yet.

Mentioned in

Source

Lines 2524-2533 in cJSON.c. Line 204 in cJSON.h.

CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item)
    {
        item->type = cJSON_Object;
    }

    return item;
}





Add Discussion as Guest

Log in