I have a text file which has data like
{"0":{"Name":"ABC","Age":30,"City":"XYZ"},"1":{"Name":"LMN","Age":20,"City":"PQR"}}
I want to import this text file and read the dictionary.
file = open('text_file.txt','r')
dictn = eval(file.read())
print(dictn)
this code. But not getting correct result.
Can anyone tell me how to read this sort of file which has double dictionary in it using Python.
Thank you in advance