Sidst opdateret den
11. jan. 2022
|
Gælder også for ColdFusion
Description
Deserializes a String
Returns
A string
Function syntax
deserialize(string, type, useCustomSerializer)
History
ColdFusion (2018 release): Renamed parameter StringToBeDeserialized to string.
ColdFusion 11: Added this function.
Parameters
Parameter |
Description |
---|---|
string |
A string that needs to be deserialized. |
type |
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. See REST Enhancements in ColdFusion 11. |
useCustomSerializer | 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. |
For more information see REST Enhancements in ColdFusion 11.