I try to send {"id": 190} with DELETE method in postman tool
It's success . But I don't know how to do this with python requests
Please guide me .
Here is the code :
def delete(url, json=None,**kwargs):
return requests.delete(url, json=None,**kwargs)
I try:
delete(url,json={"id":190})
But not work got 500 error .
org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]

json=Noneand when calling the method usedelete(url,{"id":190}). Finally get the id bykwargs['id']