Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string. More...
#include <jsoncpp.h>
Public Member Functions | |
StyledStreamWriter (std::string indentation="\t") | |
~StyledStreamWriter () | |
void | write (std::ostream &out, const Value &root) |
Serialize a Value in JSON format. More... | |
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string.
The rules for line break and indent are as follow:
If the Value have comments then they are outputed according to their CommentPlacement.
indentation | Each level will be indented by this amount extra. |
Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" | ) |
Definition at line 3936 of file jsoncpp.cpp.
void Json::StyledStreamWriter::write | ( | std::ostream & | out, |
const Value & | root | ||
) |
Serialize a Value in JSON format.
out | Stream to write to. (Can be ostringstream, e.g.) |
root | Value to serialize. |
Definition at line 3945 of file jsoncpp.cpp.
Referenced by Json::operator<<().