If AllowNaN is true, then NaN, Infinity, and -Infinity are parsed.
NaN, Infinity, and -Infinity are technically not part of
the JSON specification, but Javascript writes it by default, so it is
by the far the most common cause of invalid JSON. Practically all
JSON parsers (eg, Google GSON, Jackson, Ruby's JSON, simplejson,
JSON.net, Lua CJson) ...have an option to accept NaN.
If AllowNaN is true, then NaN, Infinity, and -Infinity are parsed.
NaN, Infinity, and -Infinity are technically not part of the JSON specification, but Javascript writes it by default, so it is by the far the most common cause of invalid JSON. Practically all JSON parsers (eg, Google GSON, Jackson, Ruby's JSON, simplejson, JSON.net, Lua CJson) ...have an option to accept NaN.