replace key in json by id.