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

Restored JSON output of dicts with non-string keys #179

Merged
merged 2 commits into from
May 19, 2023

Conversation

s-kuberski
Copy link
Collaborator

This restores the behavior of the JSON export for dict that has been working with the standard json package. When using rapidjson, the conversion of dict keys that are not strings to strings is not performed automatically anymore. The updated implementation is based on the suggestions in https://python-rapidjson.readthedocs.io/en/latest/dumps.html

np.int and np.floating, e.g. in the description of the json file, are now also properly handled.

@s-kuberski s-kuberski requested a review from fjosw as a code owner May 19, 2023 12:17
Copy link
Owner

@fjosw fjosw left a comment

Choose a reason for hiding this comment

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

Thanks!

@fjosw fjosw merged commit 81e4f37 into fjosw:develop May 19, 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.

2 participants