News for hackers. Stuff that matters.
Re:Json ⊄ js by beatgammit on Thursday December 27, 2012 @06:59PM (#4975753)
One more thing that really bugs me about JSON is that it doesn't support Infinity, -Infinity and NaN. Python's JSON library does, which leads to some interesting breakages.

Sure, for NaN you can use null, but for Infinity, you have to use really large/small numbers, which can also lead to other problems.

Re:Json ⊄ js by udp on Thursday December 27, 2012 @07:02PM (#4975770)
If Python's JSON library accepts Infinity by default, that's a bug and should be reported.
Re:Json ⊄ js by JulianWasTaken on Thursday December 27, 2012 @07:31PM (#4975850)
It isn't. It's documented behavior. See http://docs.python.org/2/library/json.html. (simple)JSON deviates from the spec in a few minor ways.
Re:Json ⊄ js by andrewcooke on Thursday December 27, 2012 @07:41PM (#4975875)
more exactly, it's an option you can disable.
Re:Json ⊄ js by enaeseth on Thursday December 27, 2012 @07:31PM (#4975849)
You can try to report it as a bug, but the docs indicate that this is by design.