v3.9.0¶
Released on 2020-07-27.
Feature release adding four long-requested features. All changes are backward-compatible.
- Optional comment parsing in
parsevia theignore_commentsparameter. ordered_jsonto preserve the insertion order of object keys.- An option to switch off implicit conversions.
- The
NLOHMANN_DEFINE_TYPE_*convenience macros, plus high-precision-number support for UBJSON and CBOR tag handling.
API changes¶
Added (6 pages):
ordered_mapbasic_json:cbor_tag_handler_tmacros:JSON_ASSERT,JSON_USE_IMPLICIT_CONVERSIONS,NLOHMANN_DEFINE_TYPE_INTRUSIVE, NLOHMANN_DEFINE_TYPE_INTRUSIVE_WITH_DEFAULT, NLOHMANN_DEFINE_TYPE_INTRUSIVE_ONLY_SERIALIZE,NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE, NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT, NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_ONLY_SERIALIZE
Changed:
basic_json::accept: Ignoring comments viaignore_commentsadded in version 3.9.0.basic_json::from_cbor: Addedtag_handlerparameter in version 3.9.0.basic_json::operator ValueType: MacrosJSON_EXPLICIT/JSON_USE_IMPLICIT_CONVERSIONSadded in version 3.9.0.basic_json::parse: Ignoring comments viaignore_commentsadded in version 3.9.0.basic_json::sax_parse: Ignoring comments viaignore_commentsadded in version 3.9.0.