update and delete managing of json