| 2095 | } |
| 2096 | |
| 2097 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2098 | { |
| 2099 | cJSON *null = cJSON_CreateNull(); |
| 2100 | if (add_item_to_object(object, name, null, &global_hooks, false)) |
| 2101 | { |
| 2102 | return null; |
| 2103 | } |
| 2104 | |
| 2105 | cJSON_Delete(null); |
| 2106 | return NULL; |
| 2107 | } |
| 2108 | |
| 2109 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2110 | { |
nothing calls this directly
no test coverage detected