
The Function Block JSON_OPTIONS calculates the options for JSON_ENCODE.
Outputs an object instead of an array if a non-associative array is used. Particularly useful when the recipient of the output expects an object and the array is empty.
If encoding a single value fails, it is omitted instead of failing.
Encodes numeric strings as numbers.
Uses whitespace to format the returned data.
All < and > are converted to \u003C and \u003E.
All &-characters are converted to \u0026.
All '-characters are converted to \u0027.
All "-characters are converted to \u0022.
No escape character is inserted before /.
Encodes Unicode characters consisting of multiple bytes directly. By default, \uXXXX escapes are used.
Returns the calculated options as an integer. The value 0 corresponds to no option. To save space, the value can also be inserted directly into the Function Block JSON_ENCODE.