"NaN and Infinity" Yeah. And I learned this the hard way with the Perl module JSON::XS. It successfully encodes a Perl NaN, but its decoder will choke on that JSON. (Reported it to the maintainer who insists that is consistent with the documentation and wouldn't fix it)
Oh no.
My parser/serializer does the same.
How could that be fixed? Anything better to serialize NaN to than NaN? Or parse NaN?