| 1961 | } |
| 1962 | |
| 1963 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 1964 | { |
| 1965 | cJSON *null = cJSON_CreateNull(); |
| 1966 | if (add_item_to_object(object, name, null, &global_hooks, false)) |
| 1967 | { |
| 1968 | return null; |
| 1969 | } |
| 1970 | |
| 1971 | cJSON_Delete(null); |
| 1972 | return NULL; |
| 1973 | } |
| 1974 | |
| 1975 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 1976 | { |
nothing calls this directly
no test coverage detected