John Phillips
08/04/2022, 1:39 PMbattk
08/04/2022, 3:36 PMJohn Phillips
08/04/2022, 3:41 PMtransform_json = {
"vendorBill" : {
"fields" : {
"dueDate" : "8/26/2022"
}
}
}
transform_json = {
"fields" : {
"dueDate" : "8/26/2022"
}
}
transform_json = {
"dueDate" : "8/26/2022",
}
transform_json = {
"vendorBill" : {
"fields" : {
"dueDate" : "8/26/2022"
}
}
}
transform_json = {
"dueDate" : "2022-08-26",
}
battk
08/04/2022, 3:43 PMbattk
08/04/2022, 3:43 PMJohn Phillips
08/04/2022, 3:48 PMJohn Phillips
08/04/2022, 3:49 PMbattk
08/04/2022, 3:50 PMbattk
08/04/2022, 3:50 PMJohn Phillips
08/04/2022, 3:59 PMbattk
08/04/2022, 4:02 PMbattk
08/04/2022, 4:02 PMbattk
08/04/2022, 4:02 PMbattk
08/04/2022, 4:03 PMJohn Phillips
08/04/2022, 4:05 PM{
"args": {},
"data": "\"{\\\"vendorBill\\\": {\\\"fields\\\": {\\\"dueDate\\\": \\\"8/26/2022\\\"}}}\"",
"files": {},
"form": {},
"headers": {
"Accept": "*/*",
"Accept-Encoding": "gzip, deflate",
"Content-Length": "62",
"Content-Type": "application/json",
"Host": "<http://httpbin.org|httpbin.org>",
"User-Agent": "python-requests/2.22.0",
"X-Amzn-Trace-Id": "Root=1-62ebee35-4bac7e0c124ed7af5c593306"
},
"json": "{\"vendorBill\": {\"fields\": {\"dueDate\": \"8/26/2022\"}}}",
"origin": "24.168.217.64",
"url": "<http://httpbin.org/post>"
}
John Phillips
08/04/2022, 4:06 PMp = <http://requests.post|requests.post>("<http://httpbin.org/post>", json=transform_json)
print (p.text)
battk
08/04/2022, 4:09 PMbattk
08/04/2022, 4:10 PMbattk
08/04/2022, 4:10 PMbattk
08/04/2022, 4:14 PM"{\"vendorBill\": {\"fields\": {\"dueDate\": \"8/26/2022\"}}}"
instead of
{
"vendorBill": {
"fields": {
"dueDate": "8/26/2022"
}
}
}
John Phillips
08/04/2022, 4:16 PMJohn Phillips
08/04/2022, 4:16 PM