hacking away to just output a json tree structure in string format