| 2217 | } |
| 2218 | |
| 2219 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2220 | { |
| 2221 | cJSON *object_item = cJSON_CreateObject(); |
| 2222 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2223 | { |
| 2224 | return object_item; |
| 2225 | } |
| 2226 | |
| 2227 | cJSON_Delete(object_item); |
| 2228 | return NULL; |
| 2229 | } |
| 2230 | |
| 2231 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2232 | { |
no test coverage detected
searching dependent graphs…