data to json file