JSON for Modern C++ 3.9.0 release has been announced for general availability and is now available with long-awaited features.
JSON for Modern C++ is a library written is vanilla C++ 11 designed to feel and behave like a first-class citizen of the language.
This JSON tool adds four long-awaited features, some of which were requested five years ago. These are:
- The parser functions have now an option to ignore // and /* */ style comments even though comments are not officially part of the JSON specification.
- Preservation of the insertion order of object keys through the new type nlohmann::ordered_json as a drop-in replacement for nlohmann::json.
- Implicit conversions can now be switched off with a CMake or preprocessor option to prevent unexpected behavior.
- The mapping between user-defined types and JSON can now be expressed using convenience A macro or macroinstruction in computer science is a rule or pattern that specifies how a sequence of characters should be mapped to an alternate replacement output sequence characters according to a defined procedure. This is known as macro expansion. Macros may be provided as part of a software application or as a part of a programming language where they... More by just listing the names of the member variables to read/write.
Other highlights in this JSON library include added high-precision number support for UBJSON for integers larger than 9223372036854775807 (LLONG_MAX). The code now compiles with Clang on Windows.
You can find out more about the rest of the In computing technology, a bug is an unintentional coding error in a computer application program, hardware device or operating system. Bugs can typically cause annoying computer glitches, or cause more serious problems including life-threatening situations. In 2018 and 2019 a bug in the sensor on the Boeing 737 Max caused Lion Air Flight 610 and Ethiopian Airlines Flight 302 to... More fixes, deprecations, new features, and source code download information from the official JSON for Modern C++ 3.9.0 release page found here.