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

Function cJSON_AddNullToObject

contrib/cJSON/cJSON.cpp:1979–1989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1977}
1978
1979CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
1980{
1981 cJSON *null = cJSON_CreateNull();
1982 if (add_item_to_object(object, name, null, &global_hooks, false))
1983 {
1984 return null;
1985 }
1986
1987 cJSON_Delete(null);
1988 return NULL;
1989}
1990
1991CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
1992{

Callers

nothing calls this directly

Calls 3

cJSON_CreateNullFunction · 0.85
add_item_to_objectFunction · 0.85
cJSON_DeleteFunction · 0.85

Tested by

no test coverage detected