Added function of generation JSON file from environmet variables