| 2232 | } |
| 2233 | |
| 2234 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2235 | { |
| 2236 | cJSON *object_item = cJSON_CreateObject(); |
| 2237 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2238 | { |
| 2239 | return object_item; |
| 2240 | } |
| 2241 | |
| 2242 | cJSON_Delete(object_item); |
| 2243 | return NULL; |
| 2244 | } |
| 2245 | |
| 2246 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2247 | { |
nothing calls this directly
no test coverage detected