json file generation