v3.8.0¶
Released on 2020-06-14.
Feature release. All changes are backward-compatible.
- Introduces a binary value type that is read from and written to CBOR, BSON, and MessagePack, and can be shared between formats.
- Generalizes the input adapters to read from any
LegacyInputIteratorcontainer (3–10 % faster parsing). - Fixes
containsfor JSON pointers and makes the binaryfrom_cbor/from_msgpack/etc. functions respectallow_exceptions.
API changes¶
Added (9 pages):
basic_json:binary,binary_t,get_binary,is_binarybyte_container_with_subtype: (overview),operator==,operator!=,subtypejson_sax:binary
Changed:
basic_json::back: Binary values are supported since version 3.8.0.basic_json::clear: Added support for binary types in version 3.8.0.basic_json::dump: Serialization of binary values added in version 3.8.0.basic_json::empty: Extended to returnfalsefor binary types in version 3.8.0.basic_json::erase: Overload 1: Added support for binary types in version 3.8.0.basic_json::erase: Overload 2: Added support for binary types in version 3.8.0.basic_json::front: Binary values are supported since version 3.8.0.basic_json::get_ptr: Extended to binary types in version 3.8.0.basic_json::get_ref: Extended to binary types in version 3.8.0.basic_json::is_primitive: Extended to returntruefor binary types in version 3.8.0.basic_json::max_size: Extended to return1for binary types in version 3.8.0.basic_json::operator value_t: Added binary type in version 3.8.0.basic_json::size: Extended to return1for binary types in version 3.8.0.basic_json::swap: Overload 6 added.basic_json::swap: Overload 7 added.basic_json::to_cbor: Compact representation of floating-point numbers added in version 3.8.0.basic_json::type: Added binary type in version 3.8.0.basic_json::type_name: Added support for binary type in version 3.8.0.basic_json::value_t: Added binary type in version 3.8.0.json_sax: Support for binary values (binary_t,binary) added in version 3.8.0.