store the data in json file.