any.toJson()

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

any.toJson( queryFormat=any, useSecureJSONPrefixOrCharset=any )

Returns: String

Argument Description
queryFormat
any, optional

Either a Boolean value that specifies whether to serialize CFML queries by Column, or a string with the value "struct".

Alias: serializeQueryByColumns

useSecureJSONPrefixOrCharset
any, optional

string characters that cannot be encoded by this charset get escaped, if not set the web charset is used.

Alias: charset, charsetName, useSecureJSONPrefix

Examples

There are currently no examples for this function

See also