JavaScript

Functions

  • DeserializeJSON()

    Converts a JSON (JavaScript Object Notation) or JSON5 string data representation into CFML data, such as a struct or array.

  • EncodeForJavaScript()

    Encodes the given string for safe output in JavaScript to reduce the risk of Cross Site Scripting attacks.

  • ESAPIEncode()

    Encodes the given string for safe output to reduce the risk of Cross Site Scripting attacks.

  • IsJson()

    Evaluates whether a string is in a valid JSON (JavaScript Object Notation) or JSON5 data interchange format.

  • JSStringFormat()

    Escapes special JavaScript characters, such as single quotation mark, double quotation mark, and newline

  • SerializeJSON()

    Converts CFML data into a JSON (JavaScript Object Notation) representation of the data.

  • ToScript()

    Creates a JavaScript expression that assigns the value of a variable to a JavaScript variable. This function can convert strings, numbers, arrays, structures, and queries to JavaScript syntax that defines equivalent variables and values.

Methods

  • any.toJson()

    Converts CFML data into a JSON (JavaScript Object Notation) representation of the data.

  • string.deserializeJSON()

    Converts a JSON (JavaScript Object Notation) or JSON5 string data representation into CFML data, such as a struct or array.

  • string.encodeForJavascript()

    Encodes the given string for safe output in JavaScript to reduce the risk of Cross Site Scripting attacks.

See also