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

It is generally never wrong to avoid setting the symbol visibility to default for public symbols. It is already checked for compilers that actually support the attribute. The visibility define...

Hi, I am using the CJSON library for the PIC24FJ micro-chip device for the application. I found that cJSON_CreateNumber() failed with the larger number creation. I have a posted problem...

I have noticed there are several PRs about int64 support. However, they are modifying the existing code and change cjson from c89 to c99, which I think is not a...

Hi, which method should I use to validate a string before parsing it with `cJSON *root = cJSON_Parse(&data[0]);`. I am experiencing crashes when the data is not correct after calling...

There was one hex literal that was lowercase and every other is already uppercase so I made them all uppercase for consistency :)

**1.Problem Description:** The else branch of the add_item_to_array function is available in version 1.7.13. In version 1.7.14, this code is deleted, affecting basic functions. The community modification that affects the...

needs-investigation

Hi! [Microsoft defines a JSON-Format](https://code.visualstudio.com/docs/languages/json#_json-with-comments) which support comments. The default file extension is jsonc ("c" for comment). It would be nice if cJSON would also support "JSON with comments" (*.jsonc)....

for example: ``` char *buf = "{\"name\":\"liming\",\"id\":1}"; cJSON *json; json = cJSON_Parse(buf); printf("json = %s\n",json); ``` the log is: ``` json = ================================================================= ==62255==ERROR: LeakSanitizer: detected memory leaks Direct leak...

We've (https://moxion.io) recently upgraded the automated code security audits used to check code commits. The audit flagged several unbounded string operations in cJSON (strcpy). This PR replaces them with the...

Hi, After a while that the program runs (about 30 hours) the esp creshes with LoadProhibitedCause and the core dump report that cJSON_strdup (that was call into cJSON_Duplicate) function cannot...