Logo
Explore Help
Register Sign In
starred/json
Watch 1
Star 0
Fork 0
mirror of https://github.com/nlohmann/json.git synced 2026-09-24 06:10:22 +01:00
Code Issues Packages Projects Releases 10 Wiki Activity

10 Releases 57 Tags

RSS Feed
  • v3.10.1 7194245a31
    Compare

    JSON for Modern C++ version 3.10.1 Stable

    feyisay07 released this 2021-08-24 07:08:02 +01:00 | 854 commits to develop since this release

    📅 Originally published on GitHub: Tue, 24 Aug 2021 19:09:30 GMT
    🏷️ Git tag created: Tue, 24 Aug 2021 06:08:02 GMT

    Release date: 2021-08-24
    SHA-256: 0b628af78a2f0f3e2ff41d8dfa18314dd53831ffc2720c2944192d9f53727f4d (json.hpp), 144268f7f85afb0f0fbea7c796723c849724c975f9108ffdadde9ecedaa5f0b1 (include.zip)

    Summary

    This release fixes a bug introduced in release 3.10.0: the extended diagnostics triggered an assertion when used with ordered_json. All changes are backward-compatible.

    💰 Note you can support this project via GitHub sponsors or PayPal.

    🐛 Bug Fixes

    • Fix an assertion triggered in the extended diagnostics using ordered_json. #2962 #2963
    • Make GDB pretty-printer robust against unset variable names. #2950

    ⚡ Improvements

    Warnings

    • Add a missing header to hash.hpp. #2948
    • Fix some -Wextra-semi-stmt warnings. #2957

    Tests and CI

    • Avoid duplicate builds in AppVeyor. #2952
    • Remove an outdated test binary that is not supported any longer. #2941 #2945
    • Skip tests that would fail if CMake option JSON_Install is set to OFF. #2946 #2947
    • Move Travis jobs to travis-ci.com. #2938 #2959
    • Set stack size for some unit tests when building with MSVC. #2955 #2961
    • Add a regression test. #2960

    Documentation

    • Update the Homebrew command as nlohmann-json is now in homebrew-core. #2943 #2966
    • Add example for integration via vcpkg. #2944 #2954
    • Fix a typo in the documentation. #2968

    🔥 Deprecated functions

    Passing iterator pairs or pointer/length pairs to parsing functions (basic_json::parse, basic_json::accept, basic_json::sax_parse, basic_json::from_cbor, basic_json::from_msgpack, basic_json::from_ubjson, basic_json::from_bson) via initializer lists is deprecated. Instead, pass two iterators; for instance, call basic_json::from_cbor(ptr, ptr+len) instead of basic_json::from_cbor({ptr, len}).

    The following functions have been deprecated in earlier versions and will be removed in the next major version (i.e., 4.0.0):

    • Function iterator_wrapper are deprecated. Please use the member function items() instead.
    • Functions friend std::istream& operator<<(basic_json&, std::istream&) and friend std::ostream& operator>>(const basic_json&, std::ostream&) are deprecated. Please use friend std::istream& operator>>(std::istream&, basic_json&) and friend operator<<(std::ostream&, const basic_json&) instead.

    All deprecations are annotated with HEDLEY_DEPRECATED_FOR to report which function to use instead.

    Downloads
    • include.zip
      320 KiB
      2026-07-03 14:26:20 +01:00
    • include.zip.asc
      833 B
      2026-07-03 14:26:21 +01:00
    • json.hpp
      956 KiB
      2026-07-03 14:26:22 +01:00
    • json.hpp.asc
      833 B
      2026-07-03 14:26:23 +01:00
    • json.tar.xz
      123 KiB
      2026-07-03 14:26:24 +01:00
    • Source Code (ZIP)
    • Source Code (TAR.GZ)
Powered by Gitea Version: 1.27.3 Page: 17ms Template: 1ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API