Lucee Function Reference
Function 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
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 |