adding serialize trait

This commit is contained in:
Christopher McArthur
2020-05-24 08:47:54 -04:00
parent f6d8c6b8a4
commit e1d2f58a00
2 changed files with 20 additions and 23 deletions

View File

@@ -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 \