MCPcopy Create free account
hub / github.com/SVF-tools/SVF / cJSON_AddRawToObject

Function cJSON_AddRawToObject

svf/lib/Util/cJSON.cpp:2157–2167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2155}
2156
2157CJSON_PUBLIC(cJSON*) cJSON_AddRawToObject(cJSON * const object, const char * const name, const char * const raw)
2158{
2159 cJSON *raw_item = cJSON_CreateRaw(raw);
2160 if (add_item_to_object(object, name, raw_item, &global_hooks, false))
2161 {
2162 return raw_item;
2163 }
2164
2165 cJSON_Delete(raw_item);
2166 return NULL;
2167}
2168
2169CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name)
2170{

Callers

nothing calls this directly

Calls 3

cJSON_CreateRawFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected