|
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 | isMultilineArray (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 70 of file json_writer.h.
|
private |
Definition at line 104 of file json_writer.h.
| Json::StyledWriter::StyledWriter | ( | ) |
Definition at line 255 of file json_writer.cpp.
|
virtual |
Definition at line 74 of file json_writer.h.
|
overridevirtual |
Serialize a Value in JSON format.
| root | Value to serialize. |
Implements Json::WriterBase.
Definition at line 260 of file json_writer.cpp.
|
private |
Definition at line 271 of file json_writer.cpp.
|
private |
Definition at line 337 of file json_writer.cpp.
|
private |
Definition at line 394 of file json_writer.cpp.
|
private |
Definition at line 426 of file json_writer.cpp.
|
private |
Definition at line 435 of file json_writer.cpp.
|
private |
Definition at line 452 of file json_writer.cpp.
|
private |
Definition at line 459 of file json_writer.cpp.
|
private |
Definition at line 465 of file json_writer.cpp.
|
private |
Definition at line 106 of file json_writer.h.
|
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.