| 1977 | } |
| 1978 | |
| 1979 | CJSON_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 | |
| 1991 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1992 | { |
nothing calls this directly
no test coverage detected