|
rippled
|
Writes a Value in JSON format in a human friendly way. More...
#include <json_writer.h>


Public Member Functions | |
| StyledWriter () | |
| virtual | ~StyledWriter () |
| std::string | write (Value const &root) override |
| Serialize a Value in JSON format. More... | |
Private Types | |
| using | ChildValues = std::vector< std::string > |
Private Member Functions | |
| void | writeValue (Value const &value) |
| void | writeArrayValue (Value const &value) |
| bool | isMultineArray (Value const &value) |
| void | pushValue (std::string const &value) |
| void | writeIndent () |
| void | writeWithIndent (std::string const &value) |
| void | indent () |
| void | unindent () |
Private Attributes | |
| ChildValues | childValues_ |
| std::string | document_ |
| std::string | indentString_ |
| int | rightMargin_ |
| int | indentSize_ |
| bool | addChildValues_ |
Writes a Value in JSON format in a human friendly way.
The rules for line break and indent are as follow:
Definition at line 90 of file json_writer.h.
|
private |
Definition at line 124 of file json_writer.h.
| Json::StyledWriter::StyledWriter | ( | ) |
Definition at line 279 of file json_writer.cpp.
|
virtual |
Definition at line 94 of file json_writer.h.
|
overridevirtual |
Serialize a Value in JSON format.
| root | Value to serialize. |
Implements Json::WriterBase.
Definition at line 284 of file json_writer.cpp.
|
private |
Definition at line 295 of file json_writer.cpp.
|
private |
Definition at line 361 of file json_writer.cpp.
|
private |
Definition at line 420 of file json_writer.cpp.
|
private |
Definition at line 454 of file json_writer.cpp.
|
private |
Definition at line 463 of file json_writer.cpp.
|
private |
Definition at line 480 of file json_writer.cpp.
|
private |
Definition at line 487 of file json_writer.cpp.
|
private |
Definition at line 493 of file json_writer.cpp.
|
private |
Definition at line 126 of file json_writer.h.
|
private |
Definition at line 127 of file json_writer.h.
|
private |
Definition at line 128 of file json_writer.h.
|
private |
Definition at line 129 of file json_writer.h.
|
private |
Definition at line 130 of file json_writer.h.
|
private |
Definition at line 131 of file json_writer.h.