【发布时间】:2021-07-13 01:56:12
【问题描述】:
我从 lambda api 网关得到这个。我怎样才能得到 {\n "a":"b",\n "c":"d",\n "e":"f",\n "g":"h"\n} 到 json 风格?
"------WebKitFormBoundarySfqiG2UABUZYF7Ir\r\n
Content-Disposition: form-data;
name=\"upload-file\";
filename=\"example.json\"\r\n
Content-Type: application/json\r\n\r\n
{\n \"a\":\"b\",\n \"c\":\"d\",\n \"e\":\"f\",\n \"g\":\"h\"\n}
\r\n------WebKitFormBoundarySfqiG2UABUZYF7Ir--"
我想做这个 {\n "a":"b",\n "c":"d",\n "e":"f",\n "g":"h"\n}
到
{
"a":"b",
"c":"d",
"e":"f",
"g":"h"
}
【问题讨论】:
标签: python json lambda http-headers httprequest