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

The purpose of this PR is to enable using cJSON in the kernel space, in particular Linux kernel. This requirement has 3 consequences: - no floating point numbers - Linux-specific...

Add NULL checks to cJSON_DetachItemViaPointer() in case its input is incomplete, so to prevent unintentional crash.

JSONC comment support :) #738 #685

Currently theres three ways the cJSON struct can be improved: 1. Get rid of `valueint` 2. Use a union for `valuestring` and `valuedouble` 3. Using good names for the elements...

enhancement

delete this invalid code because it will never be touched, deadcode.

## Proposal **It would be *very* useful to always provide `valuestring` no matter what data type the value is.** Example use cases: - Huge integers. When we use external API...

Hi, I am currently using source file cJSON.c for an embedded system that uses an old version of uClibc. The strtod() function is broken and I am unable to parse...

I noticed the function `cJSON_DeleteItemFromArray` does not distinguish between arrays and dicts. Check this example: ```C int main(int argc, char** argv) { cJSON *cjson_0 = nullptr; char *x = "{\"\":...

Hello team! I am using cJSON in combination with ESP-IDF/FreeRTOS to parse the JSONs that arrive via MQTT, however, every time it receives a JSON, the program crashes because the...

parse_string may access invalid memory address. Here is the poc code: ```c #include #include #include #include int main(int argc, char *argv[]) { char json_str[] = "{\"name\":\"james\",\"age\":20,"; int str_len = strlen(json_str);...