| 2053 | } |
| 2054 | |
| 2055 | CJSON_PUBLIC(cJSON*) cJSON_AddObjectToObject(cJSON * const object, const char * const name) |
| 2056 | { |
| 2057 | cJSON *object_item = cJSON_CreateObject(); |
| 2058 | if (add_item_to_object(object, name, object_item, &global_hooks, false)) |
| 2059 | { |
| 2060 | return object_item; |
| 2061 | } |
| 2062 | |
| 2063 | cJSON_Delete(object_item); |
| 2064 | return NULL; |
| 2065 | } |
| 2066 | |
| 2067 | CJSON_PUBLIC(cJSON*) cJSON_AddArrayToObject(cJSON * const object, const char * const name) |
| 2068 | { |
nothing calls this directly
no test coverage detected