Importing and exporting templates into json files