Currently f32::NAN and f64::NAN get serialized as null but fail to deserialize back as NAN.
cc @sfackler
It's a bit awkward since inifinity and -infinity also go to null :( Yay JSON
Could we make a trait wrapper?
It could be something like f64PosInfinity/f64NegInfinity or just f64Infinity,f64NaN?
Hi,
is there a canonical way of dealing with this?
Most helpful comment
It's a bit awkward since inifinity and -infinity also go to null :( Yay JSON