Skip to content

Conversation

@RussTorres
Copy link
Collaborator

move from ujson to msgspec for accelerated json encoding/decoding.

def render_encode_hook(obj: Any) -> Any:
if isinstance(obj, numpy.integer):
return int(obj)
if isinstance(obj, numpy.floating):
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Does this also need to go in the RenderEncoder?

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