1111

Files at this revision

API Documentation at this revision

Comitter:
yezhong
Date:
Fri Jun 24 01:46:30 2022 +0000
Parent:
0:c809010834e2
Commit message:
1

Changed in this revision

cJSON.cpp Show annotated file Show diff for this revision Revisions of this file
cJSON.h Show annotated file Show diff for this revision Revisions of this file
--- a/cJSON.cpp	Wed Mar 29 03:05:19 2017 +0000
+++ b/cJSON.cpp	Fri Jun 24 01:46:30 2022 +0000
@@ -277,7 +277,7 @@
     return c;
 }
 /* Default options for cJSON_Parse */
-cJSON *cJSON_Parse(const char *value) {return cJSON_ParseWithOpts(value,0,0);}
+cJSON *cJSON_Parse( char *value) {return cJSON_ParseWithOpts(value,0,0);}
 
 /* Render a cJSON item/entity/structure to text. */
 char *cJSON_Print(cJSON *item)              {return print_value(item,0,1);}
--- a/cJSON.h	Wed Mar 29 03:05:19 2017 +0000
+++ b/cJSON.h	Fri Jun 24 01:46:30 2022 +0000
@@ -63,7 +63,7 @@
 
 
 /* Supply a block of JSON, and this returns a cJSON object you can interrogate. Call cJSON_Delete when finished. */
-extern cJSON *cJSON_Parse(const char *value);
+extern cJSON *cJSON_Parse( char *value);
 /* Render a cJSON entity to text for transfer/storage. Free the char* when finished. */
 extern char  *cJSON_Print(cJSON *item);
 /* Render a cJSON entity to text for transfer/storage without any formatting. Free the char* when finished. */