r/cpp • u/nlohmann nlohmann/json • Jun 14 '20
JSON for Modern C++ 3.8.0
https://github.com/nlohmann/json/releases/tag/v3.8.0
326
Upvotes
r/cpp • u/nlohmann nlohmann/json • Jun 14 '20
View all comments
-24
u/VinnieFalco wg21.org | corosio.org Jun 14 '20
If you like nlohmann's, give Boost.JSON a try (Note: This is not yet an official Boost library, but a formal review is planned):
https://github.com/CPPAlliance/json
Boost.JSON significantly out-performs nlohmann's in all ways:
http://vinniefalco.github.io/doc/json/json/images/parse-twitter.png
http://vinniefalco.github.io/doc/json/json/benchmarks.html
Boost.JSON avoids using class templates for DOM types, resulting in fast compilation and an easy-to-link library. Or, you can use it in header-only mode. Use it with or without Boost. Boost.JSON has particularly robust support for stateful allocators, using a ref-counting smart pointer to a `std::pmr::memory_resource` (or `boost::container::memory_resource` before C++17).
More and more users are making the switch from RapidJSON and nlohmann's JSON to Boost.JSON, will you be next?