Registry / serialization / json-dto

json-dto

JSON →
library0.3.4vcpkgunverified

A small header-only library for converting data between json representation and c++ structs.

vcpkg install json-dto
INSTALL
IMPORT
SIG · JSON-DTO
J
json-dto
serializationcppv0.3.4
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.

json-dto/json-dto.hpp
#include <json-dto/json-dto.hpp>

Serialize a struct to JSON

#include <json-dto/json-dto.hpp> #include <iostream> struct person { std::string name; int age; }; namespace json_dto { template<typename JsonIO> void json_io(JsonIO& io, person& p) { io & "name" % p.name & "age" % p.age; } } int main() { person p{"Alice", 30}; std::string json = json_dto::to_json(p); std::cout << json; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.4latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

json-dto — pip install json-dto · libregistry