update model in json