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

Add more constant string key versions of cJSON_Add* functions to save heap in memory-constrained applications.

We tested number object to print into a buffer on different platforms (PC-Ubuntu,RTOS device), PC: as expected RTOS device: number is 'g' we add some log print on RTOS device,...

In the part ### Data Structure * `cJSON_Array` it says "where the first element has `prev.next == NULL`", it should be "where the first element has `prev == NULL`"

When the json data contains a non-integer floating point value, `cJSON_Print` will generate invalid json when the locale is such that the decimal point is a comma. I've discovered this...

I am new to cJSON and I have a question about the function print(). This function returns an (unsigned char *) pointer that points to the print buffer that was...

Used in V: https://github.com/vlang/v/blob/42efc383d272ff1f49fdf85f6ff498b69f721e12/vlib/v/gen/c/json.v#L69

Hi, I see that cJSON handles duplicate members by always returning the first matching member with the `GetObjectItem` functions. The JSON spec leaves handling of duplicate keys as an implementation...

Create, parse & print integers as-such by annotation using new flag in `type` field. `valuedouble` and `valueint` still work as before; intended to be API and ABI compatible. This prevents...

Issue at hand: a simple json with 1 string field and 1 integer field ("cJSON_addNumber") - fails to be print_unformatted. I saw https://github.com/DaveGamble/cJSON/issues/585 - and someone had a similar problem...

I am creating a JSON like this: { "msg":"type-a", "uid":"op01kd", "key":"9kasHmSmsQhhBXTk", "node-ctx":{ "id":"r111", "type":"safety", "auth-code":"269hdHE4NiruSZS4JnnckA==" }, "global-code":"9cM2b/WkVMgsHSPknmJrDMZiOc8B+cFh5XbXVjMH5yw=" } When I use JSON library to create a new JSON object and...