C++ header-only JSON library
This version contains a lot of small fixes and improvements as well as a new way to handle initializer lists via the Events interface.
tao::json::pegtl
).std::variant
.std::span
(when available) or tao::span
(fallback).nullptr
in a type::RAW_PTR
node.type::OPAQUE_PTR
and to generate events from custom values directly.optional
getter.clang-tidy
checks in TravisCI build.tao::string_view
(which is an alias to std::string_view
when available).tao::binary_view
(which is std::vector<tao::byte>
, where tao::byte
is an alias to std::byte
when available).tao::string_view
or tao::binary_view
.DISCARDED
to catch errorsAdd SAX consumer and producer for nlohmann/json values. This shows how adaptable and composeable the library is, combining its own powerful parsing, stringify and prettify capabilities with third-party value classes.