Encoding NaN in JSON

Miki Tebeka miki.tebeka at gmail.com
Tue Apr 16 20:21:37 EDT 2013


Greetings,

I'm trying to find a way to have json emit float('NaN') as 'N/A'.
I can't seem to find a way since NaN is a float, which means overriding "default" won't help.

Any simple way to do this?

Thanks,
--
Miki



More information about the Python-list mailing list