mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-11-30 10:18:40 +00:00
adding serialize trait
This commit is contained in:
@@ -76,6 +76,10 @@ struct nlohmann_traits {
|
||||
val = json::parse(str.begin(), str.end());
|
||||
return true;
|
||||
}
|
||||
|
||||
static std::string serialize(const json &val) {
|
||||
return val.dump();
|
||||
}
|
||||
};
|
||||
|
||||
#define JWT_NHOLMANN_CLAIM_TPL \
|
||||
|
||||
Reference in New Issue
Block a user