Annoying... There is a bug open for serde since 2017 conserning f64::NAN/ JSON null value.
No justification about why no one seem to want to fix it.
I don't know why you wouldn't try to fix this in 9 fucking years!
At least make it so that serializing then deserializing a f64::NAN don't throw out the entire structures?
Or alternativelly, (still annoying to me but coherent) throw an error when serializing NAN value? Just so that you don't end up with some unusable json file?
My preference would be to be able to handle nan, and infs value gracefully without needing me to write my own damned serializer/deserializer.