Skip to content

Add support for NaN values #49

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattpearson
Copy link

No description provided.

@vaidik
Copy link
Owner

vaidik commented Oct 27, 2020

What do you need NaN support for? What's the use-case?

@mattpearson
Copy link
Author

What do you need NaN support for? What's the use-case?

If a json contains mathematical metadata, a value could be NaN (example: standard deviation of a list, with only 1 element, has a NaN std dev).

Separately, it brings compatibility with Python's other json library https://docs.python.org/3/library/json.html since it supports NaN values

@mattpearson
Copy link
Author

Any thoughts on the above?

@vaidik
Copy link
Owner

vaidik commented Jan 23, 2021

The changes look good. Can you please add some test cases for this change? I will merge afterwards.

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