JSONLOOSE
platformThe JSONLOOSE
function configures the stack to output loose JSON format where NaN
and Infinite
are valid values.
In strict JSON format the NaN
and Infinite
values aren’t allowed and they are replaced by null
. By default, loose JSON is generated.
If the JSON parser you’re using is strict, you should either configure the JSONSTRICT
mode or dealing with NaN
and Infinite
values outside the parser.