The function returns a string containing the JSON if the variable or property is defined. If undefined, or if the JavaScript evaluation ends in an uncaught exception, the function returns a blank string and displays an error message. If you do not want to see the error message, check the existence of the variable or property by using the
JS.hasValue function.