Converts a JSON (JavaScript Object Notation) string data representation into CFML data, such as a CFML structure or array.
deserializeJSON(json [, strictMapping, useCustomSerializer])
→ returns any
true
true
useCustomSerializer
which will be used in place of the JSON passed with the first parameter
You can pass the parameters as a structure ("ArgumentCollection") as well
person = deserializeJSON( '{"company":"Foundeo","name":"Pete Freitag"}' );
writeOutput( person.company );
Expected Result: Foundeo
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.