commentjson
commentjson copied to clipboard
Add support for NaN values
What do you need NaN support for? What's the use-case?
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
Any thoughts on the above?
The changes look good. Can you please add some test cases for this change? I will merge afterwards.