There are unnecessary step in your example @Larz60+.
There is no need for
and
There is no need for
read()
and write()
,and
json.load()
do return a Python dictionary. import json usrdatalist = {'josh':'mi', 'ryan':'th', 'loki':'ch'} with open("my_file.json", "w") as j: json.dump(usrdatalist, j) with open("my_file.json") as j_data: saved_record = json.load(j_data) print(type(saved_record)) print(saved_record)
Output:<class 'dict'>
{'josh': 'mi', 'loki': 'ch', 'ryan': 'th'}