Spec-Zone.ru › ColdFusion

deserialize

Deserializes a string.

deserialize(string, type, useCustomSerializer); → returns string

This function requires Adobe ColdFusion 11 and up. Not supported on Lucee, etc.
  • CF11+
  • See Also: serialize

    Argument Reference

    string string
    Required

    A string that needs to be deserialized.

    type string
    Required

    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 boolean
    Required
    Default: true

    Whether to use the custom serializer or not. The custom serializer will always be 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.

    Examples
    Sample code invoking the deserialize function

    © 2012–present Foundeo, Inc. and the CFDocs contributors.
    Licensed under the MIT License.
    ColdFusion is a trademark of Adobe Systems Incorporated.
    https://cfdocs.org/deserialize

    Spec-Zone.ru

    Настройки Оффлайн Что нового Помощь О нас
    Spec-Zone .ru
    спецификации, руководства, описания, API