Loading

JSONLOOSE

platform

The 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.

JSONLOOSE is available since version 1.0.0.

See also

Signatures

Examples

JSONLOOSE NaN 5 'abcd'