Registry / serialization / glaze
library7.7.1vcpkgunverified

One of the fastest JSON libraries in the world. Glaze reads and writes from C++ memory, simplifying interfaces and offering incredible performance.

vcpkg install glaze
INSTALL
IMPORT
SIG · GLAZE
G
glaze
serializationcppv7.7.1
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.

glaze/glaze.hpp
#include <glaze/glaze.hpp>

Serialize a struct to JSON using Glaze

#include "glaze/glaze.hpp" #include <iostream> struct MyStruct { int x = 42; std::string name = "hello"; }; template <> struct glz::meta<MyStruct> { using T = MyStruct; static constexpr auto value = object( "x", &T::x, "name", &T::name ); }; int main() { MyStruct obj; std::string json = glz::write_json(obj); std::cout << json << '\n'; return 0; }
Debug
Known issues
gotchaGlaze requires compile-time reflection via glz::meta specialization; forgetting to specialize leads to compilation errors.
fix
Always define glz::meta for your types before serialization.
affects: *
Upgrade
Version history
7.7.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources

No resource links recorded.

glaze — pip install glaze · libregistry