I am getting value error in python while trying to convert a text file in to dictionary.
I am getting the file from an api.
filename=open('/sbranch/CTK/SAP/hkeep/vrp.json','r')
dictionary = {}
with open("/sbranch/CTK/SAP/hkeep/vrp.json", "r") as file:
for line in file
key, value = line.strip()
dictionary[key] = value
print(dictionary)
below is the error message:
key, value = line.strip()
ValueError: need more than 1 value to unpack