MCPcopy Create free account
hub / github.com/binbyu/Reader / cJSON_AddNullToObject

Function cJSON_AddNullToObject

opensrc/cjson/cJSON.c:1965–1975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1963}
1964
1965CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name)
1966{
1967 cJSON *null = cJSON_CreateNull();
1968 if (add_item_to_object(object, name, null, &global_hooks, false))
1969 {
1970 return null;
1971 }
1972
1973 cJSON_Delete(null);
1974 return NULL;
1975}
1976
1977CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name)
1978{

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