Skip to content

Conversation

marselester
Copy link
Owner

This PR introduces a formatter that converts complex objects into strings instead of trying to create nested JSON elements, e.g., lists, dictionaries, and objects like WSGIRequest are serialized as str(value). See #35.

"""

keep = (bool, int, float, complex, str, datetime)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering if Decimal should be kept as well

@caioariede
Copy link

LGTM @marselester, thanks!

@marselester marselester merged commit f57888e into master Oct 2, 2024
6 checks passed
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.

2 participants