JsonCpp project page | JsonCpp home page |
#include <json/writer.h>
Public Member Functions | |
StyledStreamWriter (std::string indentation="\t") | |
~StyledStreamWriter () | |
void | write (std::ostream &out, const Value &root) |
Serialize a Value in JSON format. |
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. |
Definition at line 129 of file writer.h.
Json::StyledStreamWriter::StyledStreamWriter | ( | std::string | indentation = "\t" |
) |
Definition at line 553 of file json_writer.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 562 of file json_writer.cpp.
Referenced by Json::operator<<().
hosts this site. |
Send comments to: Json-cpp Developers |