| 2148 | } |
| 2149 | |
| 2150 | CJSON_PUBLIC(cJSON*) cJSON_AddNullToObject(cJSON * const object, const char * const name) |
| 2151 | { |
| 2152 | cJSON *null = cJSON_CreateNull(); |
| 2153 | if (add_item_to_object(object, name, null, &global_hooks, false)) |
| 2154 | { |
| 2155 | return null; |
| 2156 | } |
| 2157 | |
| 2158 | cJSON_Delete(null); |
| 2159 | return NULL; |
| 2160 | } |
| 2161 | |
| 2162 | CJSON_PUBLIC(cJSON*) cJSON_AddTrueToObject(cJSON * const object, const char * const name) |
| 2163 | { |
nothing calls this directly
no test coverage detected