The data format is as follows :
{
"entity_type": "Person", " Chinese name ": " Tan Yan ", " nationality ": " The British ", " occupation ": " actor / Production / dubbing ", " Date of birth ": "1967 year 7 month 26 Japan ", "url": "/film.kg.huawei.com/ Tan Yan /178128864"}
{
"entity_type": "Person", " Chinese name ": " Su Xin ", " nationality ": " China ", " occupation ": " actor ", " Date of birth ": "1983 year 10 month 23 Japan ", "url": "/film.kg.huawei.com/ Su Xin /84121518"}
{
"entity_type": "Person", " Chinese name ": " Tan Yan ", " nationality ": " The British ", " occupation ": " actor / Production / dubbing ", " Date of birth ": "1967 year 7 month 26 Japan ", "url": "/film.kg.huawei.com/ Tan Yan "}
with open(filename, 'r', encoding='utf8') as fr:
json_filedata = fr.readlines()
import ast
for strdata in json_filedata:
test_dict = ast.literal_eval(strdata)