Skip to content

Conversation

@pechersky
Copy link

@pechersky pechersky commented Mar 23, 2025

Issue #, if available:

Description of changes:

Instead of relying on simplejson for decimal support implement decimal support directly

Remove the internal_json vs stock_json test comparison

Target (OCI, Managed Runtime, both): Managed runtime

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.


Motivation:

When simplejson is installed, requests behaves differently https://github.com/psf/requests/blob/1764cc938efc3cc9720188dfa6c3852c45211aa0/src/requests/compat.py#L59-L64 which affects custom JSONEncode/Decoders

When simplejson is installed, `requests` behaves differently
https://github.com/psf/requests/blob/1764cc938efc3cc9720188dfa6c3852c45211aa0/src/requests/compat.py#L59-L64
which affects custom JSONEncode/Decoders

Instead of relying on simplejson for decimal support
implement decimal support directly

Remove the `internal_json` vs `stock_json` test comparison
@xblitz
Copy link

xblitz commented Sep 26, 2025

this is a great PR, removing the dependency in simplejson which btw has been pinned at a recent version (with no actual requirement on that version)
can this be reviewed? CC: @briensea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants