LoveBrains
1.0.0
|
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string. More...
#include <json.h>
Public Member Functions | |
StyledStreamWriter (std::string indentation="\t") | |
void | write (std::ostream &out, const Value &root) |
Serialize a Value in JSON format. More... | |
StyledStreamWriter (std::string indentation="\t") | |
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. |
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. |
void Json::StyledStreamWriter::write | ( | std::ostream & | out, |
const Value & | root | ||
) |
void Json::StyledStreamWriter::write | ( | std::ostream & | out, |
const Value & | root | ||
) |