Leosac  0.8.0
Open Source Access Control
JSONUtils.cpp File Reference
#include "tools/JSONUtils.hpp"
#include "core/auth/ValidityInfo.hpp"
#include "tools/MyTime.hpp"
#include <date/date.h>
+ Include dependency graph for JSONUtils.cpp:

Go to the source code of this file.


 This is the header file for a generated source file, GitSHA1.cpp.
 Add a few useful extraction functions.


Auth::ValidityInfo Leosac::JSONUtil::extract_validity_with_default (const nlohmann::json &obj, const std::string &base_key, const Auth::ValidityInfo &def)
 Extract fields representing a ValidityInfo object. More...
std::chrono::system_clock::time_point Leosac::JSONUtil::extract_with_default (const nlohmann::json &obj, const std::string &key, const std::chrono::system_clock::time_point &tp)
 Extract an ISO 8601 datetime string from a json object. More...