以下是我发送的数据:
{
"customer": {
"CustomerName": "John Doe",
"PhoneNumber": "123-234-5678",
"FaxNumber": "123-234-5678",
"WebsiteURL": "http://www.something.com",
"Delivery": {
"AddressLine1": "One Microsoft Way",
"PostalCode": "98052"
}
}
}
我收到的错误是:
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
以下是处理请求的代码:
def put(self):
args = parser.parse_args()
customer = json.loads(args['customer'])
result = self.executeQueryJson("put", customer)
return result, 201
我错过了什么
目前没有回答
相关问题 更多 >
编程相关推荐