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

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

Description

@GoogleCodeExporter
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions