simplejson/simplejson — pull request #63 by hansthen (2013-03-05 14:59:46+00:00)
Title: encode NaN and Infinity as null

The JSON standard mandates that NaN and Infinity are encoded using null. I have updated the default behavior to match this. The encode_nan flag will revert to the old default behavior. The allow_nan flag is ignored and passing NaN or Infinity will not generate a ValueError anymore.