Encoding NaN in JSON

Miki Tebeka miki.tebeka at gmail.com
Wed Apr 17 17:21:27 EDT 2013


> >>> I'm trying to find a way to have json emit float('NaN') as 'N/A'.
> Easiest way is probably to transform your object before you try to write
Yeah, that's what I ended up doing. Wondered if there's a better way ...

Thanks,
--
Miki



More information about the Python-list mailing list