MCPcopy Create free account
hub / github.com/ByConity/ByConity / cJSON_CreateObject

Function cJSON_CreateObject

contrib/cJSON/cJSON.cpp:2445–2454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2443}
2444
2445CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
2446{
2447 cJSON *item = cJSON_New_Item(&global_hooks);
2448 if (item)
2449 {
2450 item->type = cJSON_Object;
2451 }
2452
2453 return item;
2454}
2455
2456/* Create Arrays: */
2457CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)

Callers 1

cJSON_AddObjectToObjectFunction · 0.85

Calls 1

cJSON_New_ItemFunction · 0.85

Tested by

no test coverage detected