Skip to content

Conversation

zaberblake
Copy link
Collaborator

Currently, datetime and date objects are not natively JSON serializable and thus are not transportable over WAMP. By overwriting the default() method of json.JSONEncoder we can specify the encoding behavior of datetime and date objects. Using isoformat(), we can thus standardize the behavior of dates sent over WAMP which allows us to do cool things such as automatically parsing dates into datetime objects using fromisoformat().

@zaberblake zaberblake requested a review from a user June 14, 2023 17:58
@ghost ghost merged commit cb5ee59 into master Jun 14, 2023
This pull request was closed.
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