| 1025 | return item; |
| 1026 | } |
| 1027 | cJSON *cJSON_CreateString(const char *string) |
| 1028 | { |
| 1029 | cJSON *item = cJSON_New_Item(); |
| 1030 | if (item) |
| 1031 | { |
| 1032 | item->type = cJSON_String; |
| 1033 | item->valuestring = cJSON_strdup(string); |
| 1034 | } |
| 1035 | return item; |
| 1036 | } |
| 1037 | cJSON *cJSON_CreateArray() |
| 1038 | { |
| 1039 | cJSON *item = cJSON_New_Item(); |
no test coverage detected