I have json with the library below (C++ Rest SDK):
https://microsoft.github.io/cpprestsdk/classweb_1_1json_1_1value.html
And I can print a json as below:
web::json::value restJson;
out << restJson.serialize() << "\n\n";
However this prints all json in one line. It does not look good enough. Is there way for me to print this indented way?
EDIT: If some one answer with a simple pretty print function that would be great.