Interface for json

Why not transform the input tree to the ParseTrees class and write() the result, skipping the .json altogether?