JSONTree
Represents a tree of json nodes that can be altered. Please make note that JSONNode@ references are not reference counted, and can be invalidated by changes to the tree. Do not hold references unless you know what you're doing.
string
toString(
bool
pretty = false
)
Dump the json tree to a string.
-
bool
pretty — Whether to pretty-print with newlines and indentation.
Returns
string
: Output data string.
void
writeFile(
string&
filename,
bool
pretty = false
)
Write a json tree to a file.
-
string&
filename — Filename of the file to write to.
-
bool
pretty — Whether to pretty-print with newlines and indentation.