我有以下json文件,这真的很大。我需要访问传记的信息。
我尝试了以下内容。但它不起作用。似乎太嵌套了。
for name in files:
try:
with open(name) as data_file:
data = json.load(data_file)
print(data["biography"])
JSON:
{
"graphql": {
"user": {
"biography": "this is the biography“,
"blocked_by_viewer": false,
"connected_fb_page": null,
"country_block": false,
"edge_follow": {
"count": 100
},
"edge_followed_by": {
"count": 100
},
我怎样才能获得传记的信息?