tree2json: Remove debug code