string.deserializeJSON()
Converts a JSON (JavaScript Object Notation) string data representation into CFML data, such as a struct or array.
string.deserializeJSON( strictMapping=boolean, format=string )
Returns: any
Argument | Description |
---|---|
strictMapping
boolean,
optional
|
A Boolean value that specifies how to convert the JSON
|
format
string,
optional
|
The format of the input string. Possible values are:
|
Examples
world = '{"save":"water","clean":"wastes"}';
res1 = deserializeJson(world);
writeDump(res1);
writeDump(res1.save);
writeDump(isstruct(res1));