Lucee object methods reference
Object Method Any.toJson
Converts CFML data into a JSON (JavaScript Object Notation) representation of the data.
Any.toJson([any queryFormat,[any useSecureJSONPrefixOrCharset]]):string
Kategorie
string,formatting,json,javascript
Argumente
Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
| Name | Typ | Required | Beschreibung |
|---|---|---|---|
| queryFormat | any | No | Either a Boolean value that specifies whether to serialize CFML queries by Column, or a string with the value "struct". |
| useSecureJSONPrefixOrCharset | any | No |
string characters that cannot be encoded by this charset get escaped, if not set the web charset is used. |