deserialize

Deserializes a String.

deserialize( String StringToBeDeserialized, String type, boolean useCustomSerializer ); → returns A string

This function requires Adobe ColdFusion. Not supported on Lucee, OpenBD, etc.

deserialize Argument Reference

StringToBeDeserialized
Required

A string that needs to be deserialized.

type
Required

String. The type of the data to be deserialized. ColdFusion by default supports XML and JSON formats. You can also implement support for other types in the CustomSerializer CFC.

useCustomSerializer
Required

Boolean. Whether to use the custom serializer or not. The default value is true. The custom serializer will be always used for deserialization. If false, the XML/JSON deserialization will be done using the default ColdFusion behavior. If any other type is passed with useCustomSerializer as false, then TypeNotSupportedException will be thrown.

Fork me on GitHub