import json


def put_car_parking_drift(car, d):
    """
    Update `car`'s properties that might have changed during a parking period.
    :param car: must be formatted in normalized electric2go dict format
    :param d: must be a result of get_car_parking_drift()
    """

    offer_drive_price = json.loads(d[4])

    car['api_estimated_range'] = d[0]
    car['fuel'] = d[1]
    car['charging'] = d[2]
    car['price_offer'] = d[3]
    car['price_offer_details'] = offer_drive_price

    return car