Registry / serialization / jsonfusion

jsonfusion

JSON →
library0.710.0vcpkgunverified

Type-driven JSON/CBOR parser with declarative validation. Header-only C++23 library.

vcpkg install jsonfusion
INSTALL
IMPORT
SIG · JSONFUSION
J
jsonfusion
serializationcppv0.710.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

jsonfusion/jsonfusion.hpp
#include <jsonfusion/jsonfusion.hpp>

Parse and validate a JSON object with type-driven schema

#include <jsonfusion/jsonfusion.hpp> #include <iostream> // Parse and validate JSON std::string json = R"({"name":"Alice","age":30})"; auto result = jsonfusion::parse<jsonfusion::object<jsonfusion::field<"name", std::string>, jsonfusion::field<"age", int>>>(json); if (result) { std::cout << result->get<"name">() << " is " << result->get<"age">() << " years old\n"; }
Debug
Known issues
gotchaRequires C++23 compiler support (e.g., GCC 13+, Clang 16+, MSVC 2022 17.6+)
fix
Set CMAKE_CXX_STANDARD to 23 and use a compatible compiler
affects: all
Upgrade
Version history
0.710.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

jsonfusion — pip install jsonfusion · libregistry