v3.10.0¶
Released on 2021-08-17.
Feature release. All changes are backward-compatible.
- Adds extended diagnostic messages (
JSON_DIAGNOSTICS) that prepend a JSON pointer to exception messages to pinpoint the offending value. - Adds a GDB pretty-printer and a
cbor_tag_handler_tstoreoption to keep CBOR tags as binary subtypes. - Supports containers with non-default-constructible types and parsing from
std::byte. - Adds
JSON_NO_IOto exclude the I/O headers and theJSON_HAS_CPP_*macros to override the detected C++ standard.
API changes¶
Added (3 pages):
macros:JSON_DIAGNOSTICS,JSON_HAS_CPP_11, JSON_HAS_CPP_14, JSON_HAS_CPP_17, JSON_HAS_CPP_20, JSON_HAS_CPP_23, JSON_HAS_CPP_26,JSON_NO_IO
Changed:
basic_json::binary: Changed the type ofsubtypefromstd::uint8_ttobinary_t::subtype_type(std::uint64_t) in version 3.10.0.basic_json::binary_t: Changed the type of subtype tostd::uint64_tin version 3.10.0.basic_json::cbor_tag_handler_t: Added valuestorein 3.10.0.byte_container_with_subtype: Changed the type of subtypes tostd::uint64_tin 3.10.0.byte_container_with_subtype::subtype: Fixed return value to properly returnsubtype_type(-1)as documented in version 3.10.0.