I'm trying to send a POST request with params that contain null values and None just gets ignored. Besides that, I'm unsure about whether or not False is sent as false.
For example:
requests.post("http://myurl.com/address/", data = {"parentValue":{"value1":False,"value2":None}})
and the required params server-side are
{"parentValue":{"value1":false, "value2":null}}
tl;dr: I need false and null on the server side as params from a POST request, how do I send them using Python requests?
json.dumps()
on your data object. – Burdeneddata=simplejson.dumps({"parentValue":{"value1":False,"value2":None}})
. – Stucco