All Versions
30
Latest Version
Avg Release Cycle
267 days
Latest Release
528 days ago

Changelog History
Page 1

  • v2.13.1 Changes

    May 07, 2020

    ๐Ÿš€ Released 2020-05-07

    • ๐Ÿ— Build:

      • Include jansson_version_str() and jansson_version_cmp() in shared library. (#534)
      • Include scripts/ in tarball. (#535)
  • v2.13 Changes

    May 05, 2020

    ๐Ÿš€ Released xxxx-xx-xx

    • ๐Ÿ†• New Features:

      • Add jansson_version_str() and jansson_version_cmp() for runtime version checking (#465).
      • Add json_object_update_new(), json_object_update_existing_new() and json_object_update_missing_new() functions (#499).
      • Add json_object_update_recursive() (#505).
    • ๐Ÿ— Build:

      • Add -Wno-format-truncation to suppress format truncation warnings (#489).
    • ๐Ÿ› Bug fixes:

      • Remove strtod macro definition for MinGW (#498).
      • Add infinite loop check in json_deep_copy() (#490).
      • Add pipe macro definition for MinGW (#500).
      • Enhance JANSSON_ATTRS macro to support earlier C standard(C89) (#501).
      • Update version detection for sphinx-build (#502).
    • ๐Ÿ“š Documentation:

      • Fix typos (#483, #494).
      • Document that call the custom free function to free the return value of json_dumps() if you have a custom malloc/free (#490).
      • Add vcpkg installation instructions (#496).
      • Document that non-blocking file descriptor is not supported on json_loadfd() (#503).
  • v2.12 Changes

    November 26, 2018

    ๐Ÿš€ Released 2018-11-26

    • ๐Ÿ› Bug fixes:

      • Fix error message in json_pack() for NULL object (#409).
      • Avoid invalid memory read in json_pack() (#421).
      • Call va_end after va_copy in json_vsprintf() (#427).
      • Improve handling of formats with '?' and '*' in json_pack() (#438).
      • Remove inappropriate jsonp_free() which caused segmentation fault in error handling (#444).
    • ๐Ÿ— Build:

      • Add function attributes for GCC and CLANG to provide warnings on improper use of jansson routines (#404).
      • Many CMake fixes (#408, #412, #415).
      • Enable -Bsymbolic-functions linker flag whenever possible.
      • Resolve various compiler warnings (#423, #430, #435, #436).
      • Fix code coverage ignored paths (#439).
    • Other:

      • Test coverage improvements (#398, #400).
      • Add VS 2017 to appveyor, update Visual Studio documentation (#417).
      • Update copyright for 2018 (#424).
      • Update install instructions in README (#401).
  • v2.11 Changes

    February 11, 2018

    ๐Ÿš€ Released 2018-02-09

    • ๐Ÿ†• New features:

      • Add json_pack() format specifiers s*, o* and O* for values that can be omitted if null (#339).
      • Add json_error_code() to retrieve numeric error codes (#365, #380, #381).
      • Enable thread safety for json_dump() on all systems. Enable thread safe json_decref() and json_incref() for modern compilers (#389).
      • Add json_sprintf() and json_vsprintf() (#393).
    • ๐Ÿ› Bug Fixes:

      • Fix incorrect report of success from json_dump_file() when an error is returned by fclose() (#359).
      • Make json_equal() const-correct (#344).
      • Fix incomplete stealing of references by json_pack() (#374).
    • ๐Ÿ— Build:

      • Work around gcc's -Wimplicit-fallthrough.
      • Fix CMake detection of sys/types.h header (#375).
      • Fix jansson.pc generated by CMake to be more consistent with the one generated using GNU Autotools (#368).
    • Other:

      • Miscellaneous documentation fixes (#356, #378, #395).
      • Remove unnecessary reference actions from parsers (#377).
  • v2.10 Changes

    March 02, 2017

    ๐Ÿš€ Released 2017-03-02

    • ๐Ÿ†• New features:

      • Add JSON_EMBED encoding flag allowing arrays and objects to be encoded into existing streams (#329).
      • Add json_dumpb() function for dumping to a pre-allocated buffer (#328).
      • Add json_dumpfd() and json_loadfd() functions for dumping to streaming file descriptors (#328).
      • Add support for parsing buffers larger than 2GB (#309).
    • ๐Ÿ— Build:

      • Fix CMake build when LONG_LONG_INT is defined as "" (#321)
    • Other:

      • Internal code cleanup (#311, #314)
  • v2.9 Changes

    November 02, 2016

    ๐Ÿš€ Released 2016-09-18

    • ๐Ÿ†• New features:

      • Add json_auto_t to automatically decref a value that goes out of scope. Available only on GCC and Clang. (#301)
    • ๐Ÿ— Build:

      • Fix CMake build (at least on Linux) by removing conflicting jansson_config.h from the distribution (#306)
      • Change CMake install target generation to be optional (#305)
    • ๐Ÿ“š Documentation:

      • Small documentation fixes.
  • v2.8 Changes

    August 30, 2016

    ๐Ÿš€ Released 2016-08-30

    • ๐Ÿ†• New features:

      • Always preserve insertion order of object items. json_object_iter() and friends, json_object_foreach() and json_dumps() and friends now always work in the insertion order of object items (#293).
      • Add json_object_foreach_safe() macro that allows json_object_del() calls during iteration (#230).
      • Add json_get_alloc_funcs() to allow reading the allocation functions set by json_set_alloc_funcs() (#262, #264).
      • Add json_pack() format specifiers s?, o? and O? for values that can be null (#261, #270).
    • ๐Ÿ› Bug fixes:

      • Fix a crash when parsing inputs consisting of very deeply nested arrays or objects (#282, #284).
      • Never convert numbers to integers in the parser when JSON_DECODE_INT_AS_REAL is set. This fixes error messages for overflowing numbers when JSON_DECODE_INT_AS_REAL is set (#212).
      • Fix a use-after-free in json_pack() error handling.
      • Fix subnormal number parsing on mingw32.
      • Handle out-of-memory situations gracefully in the hashtable implementation (#298).
    • ๐Ÿ— Build:

      • Fix build with CMake on all versions of Visual Studio up to 2015 (#262, #289).
      • Fix pkgconfig libdir when using CMake (#268).
      • Fix CMake config for static CRT builds on Windows (#206).
      • Fix warnings on LLVM 6.0 targeting iOS arm64 (#208).
      • Add coverlls.io support via Travis for a nice test coverage badge (#211).
      • Don't expect jansson_config.h to be in the compiler's include path (#209).
      • Add a build-time option to set initial hashtable size (#213).
      • Use snprintf and strncpy in place of sprintf and strcpy to silence linker warnings on OpenBSD (#233).
    • ๐Ÿ“š Documentation:

      • Fix various typos in documentation, and a broken link (#258).
      • Add an example program in examples/ (#214, #217).
      • Fix building of documentation man pages (#207).
      • Document the fact that copying objects doesn't preserve the insertion order of keys (#237).
    • โœ… Tests:

      • Don't use the nonstandard FUNCTION macro in tests.
      • Use expr instead of $((...)) in shell scripts for Solaris 10 compatibility.
      • Disable Visual Studio warning C4756 when triggered deliberately in tests (#216).
      • Other minor fixes (#221, #248).
    • Other changes:

      • List all unrecognized object keys when strict unpacking fails (#263).
      • Alter the order of the members of the hashtable_pair struct for easier debugging.
      • Minor performance improvement to json_dump() and friends (#234).
      • Minor style fixes (#255, #257).
  • v2.7 Changes

    October 02, 2014

    ๐Ÿš€ Released 2014-10-02

    • ๐Ÿ†• New features:

      • json_pack() and friends: Add format specifiers s% and +% for a size_t string length (#141).
      • json_unpack() and friends: Add format specifier s% for unpacking the string length along with the string itself (#141).
      • Add length-aware string constructors json_stringn() and json_stringn_nocheck(), length-aware string mutators json_string_setn() and json_string_setn_nocheck(), and a function for getting string's length json_string_length() (#141, #143).
      • Support \u0000 escapes in the decoder. The support can be enabled by using the JSON_ALLOW_NUL decoding flag (#141).
      • Add json_boolean_value() as an alias for json_is_true() (#146).
      • Add JSON_REAL_PRECISION encoding flag/macro for controlling real number precision (#178).
      • Define the maximum indentation as JSON_MAX_INDENT (#191).
    • ๐Ÿ› Bug fixes:

      • Some malformed \uNNNN escapes could crash the decoder with an assertion failure.
      • Avoid integer overflows with very long strings in UTF-8 decoder and hashtable.
      • Check for NULL key in json_object_get() and json_object_del() (#151).
      • Enhance hashtable seeding on Windows (#162).
      • json_unpack(): Allow mixing JSON_STRICT with optional keys (#162, #163).
      • Fix int/int32 mismatch (#142).
      • Parse subnormal numbers correctly (#202).
    • ๐Ÿ— Build:

      • Remove VS2010 build files. CMake should be used on Windows instead (#165).
      • Fix CMake build flags for MinGW (#193).
      • Add CMake config files for find_package. Rename config.h to jansson_private_config.h (#157, #159).
      • Make Valgrind checks work with CMake (#160).
      • Fix feature checks to use correct __ATOMIC flags.
      • Fix CMake checks for uint16_t and uint8_t support (#177).
      • Make Jansson build on SmartOS/Solaris (#171).
      • Work around a GCC bug on Solaris (#175).
      • Fix autoreconf on Debian (#182).
      • Don't use GNU make specific export for global AM_CFLAGS (#203, #204).
      • Fix building on Android using the supplied Android.mk (#166, #174).
      • Android.mk: Add -DHAVE_STDINT_H to LOCAL_CFLAGS (#200).
    • ๐Ÿ“š Documentation:

      • Document JANSSON_BUILD_SHARED_LIBS CMake option (#187).
    • โœ… Tests:

      • Close file handles correctly (#198).
    • Other changes:

      • \uNNNN escapes are now encoded in upper case for better readability.
      • Enable usage of AddressSanitizer (#180).
  • v2.6 Changes

    April 01, 2014

    ๐Ÿš€ Released 2014-02-11

    • ๐Ÿ”’ Security:

      • CVE-2013-6401: The hash function used by the hashtable implementation has been changed, and is automatically seeded with random data when the first JSON object is created. This prevents an attacker from causing large JSON objects with specially crafted keys perform poorly.
    • ๐Ÿ†• New features:

      • json_object_seed(): Set the seed value of the hash function.
    • ๐Ÿ› Bug fixes:

      • Include CMake specific files in the release tarball.
    • ๐Ÿ“š Documentation:

      • Fix tutorial source to send a User-Agent header, which is now required by the GitHub API.
      • Set all memory to zero in secure_free() example.
  • v2.5 Changes

    September 19, 2013

    ๐Ÿš€ Released 2013-09-19

    • ๐Ÿ†• New features:

      • json_pack() and friends: Add format specifiers s#, + and +#.
      • Add JSON_DECODE_INT_AS_REAL decoding flag to treat all numbers as real in the decoder (#123).
      • Add json_array_foreach(), paralleling json_object_foreach() (#118).
    • ๐Ÿ› Bug fixes:

      • json_dumps() and friends: Don't crash if json is NULL and JSON_ENCODE_ANY is set.
      • Fix a theoretical integer overflow in jsonp_strdup().
      • Fix l_isxdigit() macro (#97).
      • Fix an off-by-one error in json_array_remove().
    • ๐Ÿ— Build:

      • Support CMake in addition to GNU Autotools (#106, #107, #112, #115, #120, #127).
      • Support building for Android (#109).
      • Don't use -Werror by default.
      • Support building and testing with VPATH (#93).
      • Fix compilation when NDEBUG is defined (#128)
    • โœ… Tests:

      • Fix a refleak in test/bin/json_process.c.
    • ๐Ÿ“š Documentation:

      • Clarify the return value of json_load_callback_t.
      • Document how to circumvent problems with separate heaps on Windows.
      • Fix memory leaks and warnings in github_commits.c.
      • Use json_decref() properly in tutorial.
    • Other:

      • Make it possible to forward declare struct json_t.