I need at one place to have the support for infinity, -infinity and NaN values in my JSON. Now though JSON does have support for these values, but is there any support for speci
JSON does not support neither infinity or NaN values (and never has, since the original json.org grammar). Neither does JSON Schema (because it is only defined for RFC8259-compliant JSON documents or structures).
This is due to interoperability reasons - otherwise each target language that does not support infinities or NaNs would need to always wrap these values.
Whether some validator accepts invalid json documents - does not really matter. They are still invalid.