aboutsummaryrefslogtreecommitdiffstats
path: root/src/cJSON.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cJSON.c')
-rw-r--r--src/cJSON.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cJSON.c b/src/cJSON.c
index 1941d114..cf0cb132 100644
--- a/src/cJSON.c
+++ b/src/cJSON.c
@@ -1200,6 +1200,18 @@ cJSON_CreateString (const char *string)
}
cJSON *
+cJSON_CreateStringConvey (char *string)
+{
+ cJSON *item = cJSON_New_Item ();
+ if (item)
+ {
+ item->type = cJSON_String;
+ item->valuestring = string;
+ }
+ return item;
+}
+
+cJSON *
cJSON_CreateArray (void)
{
cJSON *item = cJSON_New_Item ();