Closed Hady-Eslam closed 7 months ago
I was able to reproduce this on Mac OS. System information:
{
"chardet": {
"version": null
},
"charset_normalizer": {
"version": "3.3.1"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "3.4"
},
"implementation": {
"name": "CPython",
"version": "3.11.5"
},
"platform": {
"release": "23.3.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.31.0"
},
"system_ssl": {
"version": "30100020"
},
"urllib3": {
"version": "2.0.7"
},
"using_charset_normalizer": true,
"using_pyopenssl": false
}
I have the same issue. System information: { "chardet": { "version": "4.0.0" }, "charset_normalizer": { "version": "2.0.6" }, "cryptography": { "version": "" }, "idna": { "version": "3.3" }, "implementation": { "name": "CPython", "version": "3.10.12" }, "platform": { "release": "6.5.0-27-generic", "system": "Linux" }, "pyOpenSSL": { "openssl_version": "", "version": null }, "requests": { "version": "2.31.0" }, "system_ssl": { "version": "30000020" }, "urllib3": { "version": "2.0.7" }, "using_charset_normalizer": false, "using_pyopenssl": false }
This is the behavior of the standard library. We do not customize the encoder or decoder but you can do that yourself. Or you can use simplejson
Issue In Handling Decimal in JSON when simplejson package is not installed
Expected Result
When There is a Decimal in JSON data it should be handled without an error
It should send the request without an issue
Actual Result
When installing the requests Package
and running this script
it gives an exception
But When installing SimpleJson With It
and running the same script, it will send requests normally without an issue
Reproduction Steps
install the requests package and run the bellow script, and then install simplejson package and run the same script, You will see different results
System Information