|
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. | |
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 71 of file json_writer.h.
|
private |
Definition at line 105 of file json_writer.h.
| Json::StyledWriter::StyledWriter | ( | ) |
Definition at line 260 of file json_writer.cpp.
|
virtual |
Definition at line 75 of file json_writer.h.
|
overridevirtual |
Serialize a Value in JSON format.
| root | Value to serialize. |
Implements Json::WriterBase.
Definition at line 265 of file json_writer.cpp.
|
private |
Definition at line 276 of file json_writer.cpp.
|
private |
Definition at line 342 of file json_writer.cpp.
|
private |
Definition at line 401 of file json_writer.cpp.
|
private |
Definition at line 435 of file json_writer.cpp.
|
private |
Definition at line 444 of file json_writer.cpp.
|
private |
Definition at line 461 of file json_writer.cpp.
|
private |
Definition at line 468 of file json_writer.cpp.
|
private |
Definition at line 474 of file json_writer.cpp.
|
private |
Definition at line 107 of file json_writer.h.
|
private |
Definition at line 108 of file json_writer.h.
|
private |
Definition at line 109 of file json_writer.h.
|
private |
Definition at line 110 of file json_writer.h.
|
private |
Definition at line 111 of file json_writer.h.
|
private |
Definition at line 112 of file json_writer.h.