Udate to json file