| 1969 | } |
| 1970 | |
| 1971 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 1972 | { |
| 1973 | cJSON *null = cJSON_CreateNull(); |
| 1974 | if (add_item_to_object(object, name, null, &global_hooks, false)) |
| 1975 | { |
| 1976 | return null; |
| 1977 | } |
| 1978 | |
| 1979 | cJSON_Delete(null); |
| 1980 | return NULL; |
| 1981 | } |
| 1982 | |
| 1983 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1984 | { |
nothing calls this directly
no test coverage detected