Added some functionality to open json files.