Encoding NaN in JSON

Miki Tebeka miki.tebeka at gmail.com
Fri Apr 19 15:52:39 EDT 2013


> > You understand that this will result in a chunk of text that is not JSON?
> I think he means something like this:
>  >>> json.dumps([float('nan')])
> '["N/A"]'
That's exactly what I mean :)



More information about the Python-list mailing list