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.

Methods

void parse( string& data )

Parse a json tree from string data.

void readFile( string& filename )

Read a json tree from a file.

string toString( bool pretty = false )

Dump the json tree to a string. Returns string : Output data string.

void writeFile( string& filename, bool pretty = false )

Write a json tree to a file.

JSONNode@ get_root( )

Returns JSONNode@ : The root json node in this tree.