Encoding infinity and NaN
Since JSON cannot encode “Not A Number” and infinity, these numeric values are encoded as strings. The string starts with
the escape character, which is the JSON string: \u001B.
- NaN = \u001BNaN
- Positive infinity = \u001BInfinity
- Negative infinity =\u001BInfinity