Lucee Function Reference
deserializejson()
Converts a JSON (JavaScript Object Notation) string data representation into CFML data, such as a struct or array.
Example
deserializejson(string JSONVar,[boolean strictMapping]):any
Category
string,parsing,json,javascript
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
JSONVar | string | Yes | A string that contains a valid JSON construct, or variable that represents one. | |
strictMapping | boolean | No | true | A Boolean value that specifies whether to convert the JSON strictly |