MCPcopy Create free account
hub / github.com/esnet/iperf / cJSON_AddObjectToObject

Function cJSON_AddObjectToObject

src/cjson.c:2174–2184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2172}
2173
2174CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2175{
2176 cJSON *object_item = cJSON_CreateObject();
2177 if (add_item_to_object(object, name, object_item, &global_hooks, false))
2178 {
2179 return object_item;
2180 }
2181
2182 cJSON_Delete(object_item);
2183 return NULL;
2184}
2185
2186CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2187{

Callers

nothing calls this directly

Calls 3

cJSON_CreateObjectFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…