update to json file