Releases: DaveGamble/cJSON
Releases · DaveGamble/cJSON
Release list
1.5.0
Features:
- cJSON finally prints numbers without losing precision (#153) thanks @DeboraG
cJSON_Comparerecursively checks if two cJSON items contain the same values (#148)- Provide case sensitive versions of every function where it matters (#158, #159)
- Added
cJSON_ReplaceItemViaPointerandcJSON_DetachItemViaPointer - Added
cJSON_freeandcJSON_mallocthat expose the internal configured memory allocators. (02a05ee)
Enhancements:
- Parse into a buffer, this will allow parsing
\u0000in the future (not quite yet though) - General simplifications and readability improvements
- More unit tests
- Update unity testing library to 2.4.1
- Add the json-patch-tests test suite to test cJSON_Utils.
- Move all tests from
test_utils.cto unit tests with unity.
Fixes:
- Fix some warnings with the Microsoft compiler (#139) thanks @PawelWMS
- Fix several bugs in cJSON_Utils, mostly found with json-patch-tests
- Prevent a stack overflow by specifying a maximum nesting depth
CJSON_NESTING_LIMIT
1.4.7
1.4.6
Fixes:
- Several corrections in the README
- Making clear that
valueintshould not be written to - Fix overflow detection in
ensure(2683d4d) - Fix a potential null pointer dereference in cJSON_Utils (795c3ac)
- Replace incorrect
sizeof('\0')withsizeof("")(84237ff) - Add caveats section to the README (50b3c30)
- Make cJSON locale independent (#146) Thanks @peterh for reporting
- Fix compiling without CMake with MSVC (#147) Thanks @dertuxmalwieder for reporting
1.4.5
1.4.4
Fixes:
- Fix a theoretical integer overflow, (not sure if it is possible on actual hardware) e58f7ec
- Fix an off by one error (cc84a44), thanks @gatzka
- Double check the offset of the print buffer in
ensure(1934059)
Improvements:
- Add a note in the header about required buffer size when using
cJSON_PrintPreallocated(4bfb880)
1.4.3
1.4.2
1.4.1
1.4.0
Features
- Functions to check the type of an item (#120)
- Use dllexport on windows and fvisibility on Unix systems for public functions (#116), thanks @mjerris
- Remove trailing zeroes from printed numbers (#123)
- Expose the internal boolean type
cJSON_boolin the header (2d3520e)
Fixes
- Fix handling of NULL pointers in
cJSON_ArrayForEach(b47d0e3) - Make it compile with GCC 7 (fix -Wimplicit-fallthrough warning) (9d07917)