Template Function jwt::operator<<(std::ostream&, const T&)

Function Documentation

template<typename T, typename Cond>
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 for to_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.