cJSON
cJSON copied to clipboard
Ultralightweight JSON parser in ANSI C
# Bug Report ## Required Info: - **Operating System**: Debian GNU/Linux 12 (bookworm) - **FreeRTOS Version**: V10.5.1 (ESP-IDF SMP modified) - **ESP-IDF Version**: v5.4-dev-78-gd4cd437ede-dirty - **Commit hash**: d4cd437ede613fffacc06ac6d6c93a083829022f - **Component**:...
there is an isssue with the strings in this library. on one hand when parsing the string it's parsed from \" till \" on the other hand when you want...
I added a ```cJSONUtils_SortArray``` function to the ```cJSON_Util``` that sorts an array given a ordering comparison function (much like ```qsort(3)```). By adding a comparison function parameter to the already existing...
**Hi xiaomianhehe:** **You are very good at maintaining cjson. When I use it, I find that the indentation of print is as follows:** **String:** ` {"name":"Awesome4K","resolutions":[{"width":1280,"height":720},{"width":1920,"height":1080},{"width":3840,"height":2160}]} ` **cJSON_Print** ` {...
During working with Telegram Bot API with cJSON library for parsing values, I've faced an issue. The issue is this: I was unable to get identifier value from response -...
I have build a Tcl extension (c bindings) with a slightly modified version of cJSON in order to be able to handle node deletion properly and during a forum discussion...
### try this example project: ```cmake cmake_minimum_required(VERSION 3.28...3.30) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) project(cJSON-test VERSION 0.1.0 LANGUAGES CXX) add_compile_options(-std=c17) set(CMAKE_C_STANDARD 17) set(CMAKE_C_EXTENSIONS NO) set(CMAKE_C_STANDARD_REQUIRED YES) set(CMAKE_BUILD_TYPE Release) set(CMAKE_INSTALL_PREFIX ${CMAKE_SOURCE_DIR}/stagedir) enable_testing() include(FetchContent) FetchContent_Declare( cJSON...
```bash /usr/local/opt/llvm/bin/clang-tidy -checks=-*,cert-* -p=build /Users/clausklein/Workspace/c/tests/cJSON-src/test.c 4618 warnings generated. Suppressed 4618 warnings (4618 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from...
conversion from 'double' to 'float' may change value [-Werror=float-conversion] This error in cJson.c file,line 569,35 columns How can i solve this error?
This work allows to format floating point, either set the decimal point or significant number. If not format preference are given then the driver behaves as before. Note that JSON...