Template Function jwt::operator<<
Defined in File jwt.hpp
Function Documentation
-
template<typename T, typename = typename std::enable_if<detail::meta::has_create_json_obj_member<T>{}>::type>
std::ostream &jwt::operator<<(std::ostream &os, const T &obj) An overloaded operator for writing to standard ostream in JSON format. The requirements on type
T
is same as that forto_json_str
API.This API is same in functionality as that of
write
API. Only difference is that, there is no option to write the JSON representation in pretty format.