Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlatJSONFormatter #36

Merged
merged 1 commit into from
Oct 2, 2024
Merged

FlatJSONFormatter #36

merged 1 commit into from
Oct 2, 2024

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