Basic functionality for json file output.