为什么在Postman中可以解析JSON,但是在使用Python3请求模块时不能解析?

时间:2019-10-11 04:16:44

标签: json python-3.7

使用Postman时,我从API调用中获得了以下JSON响应(摘要),其状态码为200。

当我使用requests模块和json.loads()在Python3中发出相同的请求时,它会在带有“ 77”的行上引发错误(预期)。我不明白的是,当其他所有JSON验证程序失败时,邮递员如何解析json并“漂亮”显示它?

"Row": {
    "Cell": {
        "name": "InstanceID",
        "77"
    },
    "Cell": {
        "name": "Guid",
        "3ce599a911a24938be584e206c21f9c6"
    },
    "Cell": {
        "name": "TriggerTime",
        "2019-10-09T23:01:41.1300000Z"
    },
    "Cell": {
        "name": "TriggerEntity",
        "16430d626563484f885ce30622b5c6b7"
    },
    "Cell": {
        "name": "TriggerEvent",
        "4"
    },
    "Cell": {
        "name": "CreationTime",
        "2019-10-09T23:01:41.0670000Z"
    },
    "Cell": {
        "name": "AckTime"
    },
    "Cell": {
        "name": "AckBy",
        "00000000000000000000000000000000"
    },
    "Cell": {
        "name": "AckReason",
        "28673"
    },
    "Cell": {
        "name": "ExternalInstanceID",
        "-1"
    },
    "Cell": {
        "name": "OfflinePeriod",
        "0"
    },
    "Cell": {
        "name": "TriggerEventSubType",
        "0"
    },
    "Cell": {
        "name": "State",
        "1"
    },
    "Cell": {
        "name": "InvestigatedBy",
        "00000000000000000000000000000000"
    },
    "Cell": {
        "name": "InvestigatedTime"
    },
    "Cell": {
        "name": "HasSourceCondition",
        "False"
    },
    "Cell": {
        "name": "DynamicContent"
    },
    "Cell": {
        "name": "Priority",
        "1"
    },
    "Cell": {
        "name": "Latitude"
    },
    "Cell": {
        "name": "Longitude"
    }
}

0 个答案:

没有答案