cJSON icon indicating copy to clipboard operation
cJSON copied to clipboard

Ultralightweight JSON parser in ANSI C

Results 187 cJSON issues
Sort by recently updated
recently updated
newest added

Fantastic - You created a bear minimum feature set - that works great. Thank you the speed of your code is crazy fast I would like to ask you about...

I have a JSON array that looks like this: ```json { {"link": "https://foo", "name": "foo", "comment": "foo"}, {"link": "https://quz", "name": "bar", "comment": "bar"}, } ``` I'd like to sort it...

Hello! Just an idea: Why didn't you merge the valuestring, valueint and valuedouble parameters of the cJSON structure in an union? ``` /* The cJSON structure: */ typedef struct cJSON...

Hi there, Looking into bumping a version of cJSON I'm using and was wondering if cJSON had any guarantees or known backwards compatibility. In specific, between versions 1.7.10+ and the...

There is no way to update existing boolean item. The only path I see is to check if the new value matches the old and if it doesn't then delete...

enhancement

Adjust cJSON_PrintPreallocated() to return a size_t that provides the length of the output string. On error, it will return 0; so legacy behavior of interpreting its return as a boolean...

function cJSON_IsBool: CJSON_PUBLIC(cJSON_bool) cJSON_IsNull(const cJSON * const item) { if (item == NULL) { return false; } return (item->type & 0xFF) == cJSON_NULL; } CJSON_PUBLIC(cJSON_bool) cJSON_IsNumber(const cJSON * const item)...

The following program runs successfully: ```c #ifdef NDEBUG # error compile with assertions for this test #endif #include #include #include int main(void) { cJSON *s = cJSON_Parse(u8"[\"\\uX000α\"]"), *a = NULL;...

Fixes #427 (I see the diff contains some stripped trailing whitespace, if you hate these changes I can try to revert it but I doubt it was there on purpose...

This change adds storing the string version of numbers during decoding so that large or precise numbers can be handled by the program without the need for cJSON to directly...