MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / cJSON_AddRawToObject

Function cJSON_AddRawToObject

cJSON.c:2207–2217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2205}
2206
2207CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2208{
2209 cJSON *raw_item = cJSON_CreateRaw(raw);
2210 if (add_item_to_object(object, name, raw_item, &global_hooks, false))
2211 {
2212 return raw_item;
2213 }
2214
2215 cJSON_Delete(raw_item);
2216 return NULL;
2217}
2218
2219CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2220{

Calls 3

cJSON_CreateRawFunction · 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…