On 2013-04-18, Wayne Werner <wa...@waynewerner.com> wrote: > On Wed, 17 Apr 2013, Miki Tebeka wrote: > >>>> I'm trying to find a way to have json emit float('NaN') as 'N/A'. >>> No. There is no way to represent NaN in JSON. It's simply not part of the >>> specification. >> I know that. I'm trying to emit the *string* 'N/A' for every NaN. > > Why not use `null` instead? It seems to be semantically more similar...
Why not use 'NaN' instead? It seems to be even more semantically similar... -- Grant Edwards grant.b.edwards Yow! I want a VEGETARIAN at BURRITO to go ... with gmail.com EXTRA MSG!! -- http://mail.python.org/mailman/listinfo/python-list