v3.0.1
版本发布时间: 2017-12-30 03:26:35
nlohmann/json最新发布版本:v3.11.3(2023-11-29 05:38:09)
Release date: 2017-12-29 SHA-256: c9b3591f1bb94e723a0cd7be861733a3a555b234ef132be1e9027a0364118c4c
Summary
This release fixes small issues in the implementation of JSON Pointer and JSON Patch. All changes are backward-compatible.
Changes
- :bug: The "copy" operation of JSON Patch (RFC 6902) requests that it is an error if the target path points into a non-existing array or object (see #894 for a detailed description). This release fixes the implementation to detect such invalid target paths and throw an exception.
- :bug: An array index in a JSON Pointer (RFC 6901) must be an integer. This release fixes the implementation to throw an exception in case invalid array indices such as
10e2
are used. - :white_check_mark: Added the JSON Patch tests from Byron Ruth and Mike McCabe.
- :memo: Fixed the documentation of the
at(ptr)
function with JSON Pointers to list all possible exceptions (see #888). - :memo: Updated the container overview documentation (see #883).
- :wrench: The CMake files now respect the
BUILD_TESTING
option (see #846, #885) - :rotating_light: Fixed some compiler warnings (see #858, #882).
Deprecated functions
:fire: To unify the interfaces and to improve similarity with the STL, the following functions are deprecated since version 3.0.0 and will be removed in the next major version (i.e., 4.0.0):
-
friend std::istream& operator<<(basic_json&, std::istream&)
-
friend std::ostream& operator>>(const basic_json&, std::ostream&)
Please use friend std::istream& operator>>(std::istream&, basic_json&)
and friend operator<<(std::ostream&, const basic_json&)
instead.
1、 json.hpp 501.92KB
2、 json.hpp.asc 833B