Deserializes a string.
deserialize(string, type, useCustomSerializer);
→ returns any
trueuseCustomSerializer as false, then TypeNotSupportedException will be thrown.
Converts a JSON string back into CFML data using ColdFusion's default JSON deserializer.
person = deserialize( '{"firstName":"John","lastName":"Doe"}', "json", false );
writeOutput( person.firstName & " " & person.lastName );
Expected Result: John Doe
Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.