added the method to dict and to json to render a json output on a tree
Merge pull request #23 from novapost/13-add_a_json_output

added the method to dict and to json to render a json output on a tree