我从 HTTP
请求的 POST
响应中收到了以下的 JSON
数组:
[{
"username": "username_1",
"first_name": "",
"last_name": "",
"roles": "system_admin system_user",
"locale": "en",
"delete_at": 0,
"update_at": 1511335509393,
"create_at": 1511335500662,
"auth_service": "",
"email": "userid_1@provider_1.com",
"auth_data": "",
"position": "",
"nickname": "",
"id": "short-string-of-random-characters-1"
}, {
...
}
<more such objects>..]
在 Python
中,如果 typeof(response)
返回的是 requests.models.Response
,我该如何解析它?
json
模块。 - chepner