python请求发送None而不是null

时间:2018-05-07 04:35:30

标签: python python-3.x python-requests locust

我环顾四周但却无法找到任何明确回答此问题的信息。我可能做错了,但我在使用Python(3.6)(使用引擎盖下的Python请求库)发送一个JSON in locustio,看起来像:

{'Owner': None, 'Address': '123 sample', 'Introduction': 'hello', 'State': 1, 'Id': 1, 'EIN': '54330345', 'Name': 'company', 'Logo': None}

r=self.client.put("/usergroup/1",json=grp)

我的问题是在击中服务器端之前每个None都被转换为null吗?请求库是否处理发送/接收的null和None之间的所有转换?

0 个答案:

没有答案
相关问题