Skip to content

Releases: DaveGamble/cJSON

1.5.0

Choose a tag to compare

@FSMaxB FSMaxB released this 02 May 00:43

Features:

  • cJSON finally prints numbers without losing precision (#153) thanks @DeboraG
  • cJSON_Compare recursively checks if two cJSON items contain the same values (#148)
  • Provide case sensitive versions of every function where it matters (#158, #159)
  • Added cJSON_ReplaceItemViaPointer and cJSON_DetachItemViaPointer
  • Added cJSON_free and cJSON_malloc that expose the internal configured memory allocators. (02a05ee)

Enhancements:

  • Parse into a buffer, this will allow parsing \u0000 in 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.c to 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

Choose a tag to compare

@FSMaxB FSMaxB released this 18 Apr 19:50

Fixes:

  • Fix cJSONUtils_ApplyPatches, it was completely broken and apparently nobody noticed (or at least reported it) (075a06f)
  • Fix inconsistent prototype for cJSON_GetObjectItemCaseSensitive (51d3df6) thanks @PawelWMS

1.4.6

Choose a tag to compare

@FSMaxB FSMaxB released this 08 Apr 21:42

Fixes:

  • Several corrections in the README
  • Making clear that valueint should not be written to
  • Fix overflow detection in ensure (2683d4d)
  • Fix a potential null pointer dereference in cJSON_Utils (795c3ac)
  • Replace incorrect sizeof('\0') with sizeof("") (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

Choose a tag to compare

@FSMaxB FSMaxB released this 28 Mar 15:40

Fixes:

1.4.4

Choose a tag to compare

@FSMaxB FSMaxB released this 23 Mar 21:18

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

Choose a tag to compare

@FSMaxB FSMaxB released this 19 Mar 10:13

Fixes:

  • Fix compilation of the tests on 32 bit PowerPC and potentially other systems (4ec6e76)
  • Fix compilation with old GCC compilers (4.3+ were tested) (227d339, 466eb8e), see also #126

1.4.2

Choose a tag to compare

@FSMaxB FSMaxB released this 16 Mar 00:31

Fixes:

  • Fix minimum required cmake version (30e1e7a)
  • Fix detection of supported compiler flags (76e5296)
  • Run cJSON_test and cJSON_test_utils along with unity tests (c597601)

1.4.1

Choose a tag to compare

@FSMaxB FSMaxB released this 15 Mar 19:20

Fix: Make print_number abort with a failure in out of memory situations (cf1842d)

1.4.0

Choose a tag to compare

@FSMaxB FSMaxB released this 04 Mar 13:12

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_bool in the header (2d3520e)

Fixes

  • Fix handling of NULL pointers in cJSON_ArrayForEach (b47d0e3)
  • Make it compile with GCC 7 (fix -Wimplicit-fallthrough warning) (9d07917)

Other Improvements

  • internally use realloc if available (#110)
  • builtin support for fuzzing with afl (#111)
  • unit tests for the print functions (#112)
  • Always use buffered printing (#113)
  • simplify the print functions (#114)
  • Add the compiler flags -Wdouble-conversion, -Wparentheses and -Wcomma (#122)

1.3.2

Choose a tag to compare

@FSMaxB FSMaxB released this 28 Feb 21:11

Fix:

  • Don't build the unity library if testing is disabled ( #121 ). Thanks @ffontaine