Skip to content

[simplejson,ultrajson] Implement formatters for simplejson and ultrajson (ujson)#64

Closed
nhairs wants to merge 4 commits intomainfrom
nhairs-simplejson-ultrajson
Closed

[simplejson,ultrajson] Implement formatters for simplejson and ultrajson (ujson)#64
nhairs wants to merge 4 commits intomainfrom
nhairs-simplejson-ultrajson

Conversation

@nhairs
Copy link
Copy Markdown
Owner

@nhairs nhairs commented Mar 22, 2026

Per title

Note that both libraries have different handling of datetime.datetime and bytes objects. In the case of bytes they will error if they receive any non-printable characters. I've not yet been able to determine if there is a work around to the encoding or if it is just the decoding when testing that is the problem.

Test Plan

  • run tests

@nhairs
Copy link
Copy Markdown
Owner Author

nhairs commented Mar 29, 2026

Based on my attempted discussion on reddit there doesn't seem to be much appetite for these alternate JSON encoders.

Given the standard library encoder doesn't have errors when encoding bytes and orjson is the most popular non-standard encoder and also doesn't have errors with bytes: I think I'll mark these two libraries as unsupported

@nhairs nhairs closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant