| 2061 | } |
| 2062 | |
| 2063 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2064 | { |
| 2065 | cJSON *object_item = cJSON_CreateObject(); |
| 2066 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2067 | { |
| 2068 | return object_item; |
| 2069 | } |
| 2070 | |
| 2071 | cJSON_Delete(object_item); |
| 2072 | return NULL; |
| 2073 | } |
| 2074 | |
| 2075 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2076 | { |
nothing calls this directly
no test coverage detected