Fixed the open json file functionality.