| 2167 | } |
| 2168 | |
| 2169 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2170 | { |
| 2171 | cJSON *object_item = cJSON_CreateObject(); |
| 2172 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2173 | { |
| 2174 | return object_item; |
| 2175 | } |
| 2176 | |
| 2177 | cJSON_Delete(object_item); |
| 2178 | return NULL; |
| 2179 | } |
| 2180 | |
| 2181 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2182 | { |
nothing calls this directly
no test coverage detected