JWT header impl

This commit is contained in:
Arun M 2017-11-01 17:04:09 +05:30
parent 063a0af131
commit 3e867d77f1
13 changed files with 358 additions and 20 deletions

View file

@ -0,0 +1,21 @@
#include <iostream>
#include <string>
#include "./json.hpp"
using json = nlohmann::json;
void basic_json_test()
{
json obj = json::object();
obj["test"] = "value-test";
obj["test-int"] = 42;
std::string jstr = obj.dump(0);
std::cout << jstr << std::endl;
}
int main() {
basic_json_test();
return 0;
}