Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

convert nan and inf into JSON "null" or CSV '' #13

Open
GoogleCodeExporter opened this issue May 5, 2015 · 0 comments
Open

convert nan and inf into JSON "null" or CSV '' #13

GoogleCodeExporter opened this issue May 5, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

NaN and +-Inf numbers are not allowed in JSON.  
They should be represented as "null" in JSON output.  
In CSV output, it's less clear since there is no standard, but empty string 
would work for me.

see http://tools.ietf.org/html/rfc4627 about NaN

see http://en.wikipedia.org/wiki/IEEE_754-2008 about JSON numbers
2.4.  Numbers
...
Numeric values that cannot be represented as sequences of digits
   (such as Infinity and NaN) are not permitted.


Original issue reported on code.google.com by l...@google.com on 18 Mar 2011 at 10:29

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant