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