| 2157 | } |
| 2158 | |
| 2159 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2160 | { |
| 2161 | cJSON *object_item = cJSON_CreateObject(); |
| 2162 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2163 | { |
| 2164 | return object_item; |
| 2165 | } |
| 2166 | |
| 2167 | cJSON_Delete(object_item); |
| 2168 | return NULL; |
| 2169 | } |
| 2170 | |
| 2171 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2172 | { |
nothing calls this directly
no test coverage detected