| 1019 | return item; |
| 1020 | } |
| 1021 | cJSON *cJSON_CreateString(const char *string) |
| 1022 | { |
| 1023 | cJSON *item = cJSON_New_Item(); |
| 1024 | if (item) |
| 1025 | { |
| 1026 | item->type = cJSON_String; |
| 1027 | item->valuestring = cJSON_strdup(string); |
| 1028 | } |
| 1029 | return item; |
| 1030 | } |
| 1031 | cJSON *cJSON_CreateArray() |
| 1032 | { |
| 1033 | cJSON *item = cJSON_New_Item(); |
no test coverage detected