cJSON
cJSON copied to clipboard
Ultralightweight JSON parser in ANSI C
By adjusting the position, the `valueint` and `type` memory are aligned, occupying a total of 8 bytes instead of 16 bytes, so sizeof(cJSON) is reduced from 64 bytes to 56...
I encounter an issue when I try to print JSON string with the cJSON_PrintUnformatted function. In the sub function print_number(), i saw that "number_buffer" was filled with 5.30498947741318e-315 when item->valuedouble...
After searching the library for a while, I did not find an API to be able to create an array of objects to obtain something like I show below ```json...
There are several C libraries for JSON parsing which are relatively or very popular, even here on GitHub (e.g. json-c, oj, jansson). It would help if you could post a...
I wanted to see if there would be any interest in accepting a patch where large numbers (like even larger than 64bit numbers) would be handled as a string in...
Yes, JSON is kind of bad for configuration files because of this. This is why I personally prefer YAML for that, although it requires a much more complex parser. I...
there is many situations need read configure file has annotation i have test the code ```c char *s = "{//aa \n \"list\":[{\"name\":\"22xiao hong\",\"age\":10},{\"name\":\"33hua hua\",\"age\":\"11\"}]}"; cJSON *root = cJSON_Parse(s); ``` parse...
Hello, i'm using cJSON as part of a cmake superbuild. So cJSON is built along my project. But i can't just do `#include ` since the folder containing this file...
compiling cJSON.c... ..\NET\cJSON\cJSON.c(55): warning: #1293-D: assignment in condition if (!(copy = (char*)cJSON_malloc(len))) return 0; ..\NET\cJSON\cJSON.c(280): warning: #1293-D: assignment in condition ptr=str;while ((token=*ptr) && ++len) {if (strchr("\"\\\b\f\n\r\t",token)) len++; else if (token