MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / cJSON_AddObjectToObject

Function cJSON_AddObjectToObject

external/cJSON/cJSON.c:2234–2244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2232}
2233
2234CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2235{
2236 cJSON *object_item = cJSON_CreateObject();
2237 if (add_item_to_object(object, name, object_item, &global_hooks, false))
2238 {
2239 return object_item;
2240 }
2241
2242 cJSON_Delete(object_item);
2243 return NULL;
2244}
2245
2246CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name)
2247{

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