Currently f32::NAN and f64::NAN get serialized as null but fail to deserialize back as NAN. cc @sfackler