updating the json file