如何使用python解析JSON文件中的多个级别(数组)?

2024-04-29 08:44:33 发布

您现在位置:Python中文网/ 问答频道 /正文

下面是我试图用python解析的示例JSON。 我很难解析“文件”: 感谢任何帮助。在

{
    "startDate": "2016-02-19T08:19:30.764-0700",
    "endDate": "2016-02-19T08:20:19.058-07:00",
    "files": [
        {
            "createdOn": "2017-02-19T08:20:19.391-0700",
            "contentType": "text/plain",
            "type": "jpeg",
            "id": "Photoshop",
            "fileUri": "output.log"
        }
    ],
    "status": "OK",
    "linkToken": "-3418849688029673541",
    "subscriberViewers": [
        "null"
    ]
}

Tags: 文件textidjson示例typefilesjpeg