Template Function jwt::to_json_str
Defined in File jwt.ipp
Function Documentation
-
template<typename T, typename Cond>
std::string jwt::to_json_str(const T &obj, bool pretty) Converts an object of type
Tto its JSON string format.
For pretty print, pass second parameter as
true.Note
: Type
Tmust have a member function namedcreate_json_obj. The check is made at compile time. Checkmeta::has_create_json_obj_memberfor more details. This check is done inCondtemplate parameter.