![]() |
Cinder
0.9.1
|
#include <Json.h>
Public Member Functions | |
WriteOptions () | |
WriteOptions & | createDocument (bool createDocument=true) |
WriteOptions & | indented (bool indent=true) |
bool | getCreateDocument () const |
bool | getIndented () const |
Options for JSON writing. Passed to the write
method.
cinder::JsonTree::WriteOptions::WriteOptions | ( | ) |
Default options. Indents. Does not create root document.
JsonTree::WriteOptions & cinder::JsonTree::WriteOptions::createDocument | ( | bool | createDocument = true | ) |
Sets whether JSON is wrapped in a 'document root' object. Default false
.
JsonTree::WriteOptions & cinder::JsonTree::WriteOptions::indented | ( | bool | indent = true | ) |
Sets whether JSON string is indented. Default true
.
bool cinder::JsonTree::WriteOptions::getCreateDocument | ( | ) | const |
whether JSON is wrapped in a 'document root' object.
bool cinder::JsonTree::WriteOptions::getIndented | ( | ) | const |
Returns whether JSON string is indented.