def METHOD_NAME(_dict):
    """Hook for json.parse(...) to parse Xero date formats."""
    # This was taken from the pyxero library and modified
    # to format the dates according to RFC3339
    for key, value in _dict.items():
        if isinstance(value, str):
            value = parse_date(value)
            if value:
                if type(value) is date:
                    value = datetime.combine(value, time.min)
                value = value.replace(tzinfo=timezone.utc)
                _dict[key] = datetime.isoformat(value, timespec="seconds")
    return _dict