Skip to content

Conversation

@nhairs
Copy link
Owner

@nhairs nhairs commented May 5, 2024

This PR improves the JSON encoding of non-standard types by introducing and using the .defaults module. The .defaults module adds helper functions that can test and apply formatting for types not supported by a given encoder.

Please note that in doing so, some outputs of the JsonFormatter have changed. That said these changes return more "reasonable" results rather the the original str(o) fallback.

For more detailed list of changes to the encoders see the CHANGELOG.

Test Plan

Have added additional tests and now check for specific output.

@nhairs nhairs merged commit b37c54b into main May 14, 2024
@nhairs nhairs deleted the improve_type_handling branch May 14, 2024 09:36
@nhairs nhairs mentioned this pull request May 14, 2024
10 tasks
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