CFLib.org – Common Function Library Project

WDDXDeserialize(input)

Last updated October 16, 2002

Version: 2 | Requires: ColdFusion MX | Library: CFMLLib

 
Rated 0 time(s). Average Rating: 0

Description:
Allows for deserialization of WDDX data.

Return Values:
Returns deserialized data.

Example:

view plain print about
<cfscript>
x = arrayNew(1);
x[1] = now();
x[2] = structNew();
x[2].foo = "goo";
packet = wddxSerialize(x);
original = wddxDeserialize(packet);
</cfscript>
<cfdump var="#original#">

Parameters:

Name Description Required
input A valid WDDX string. Yes

Full UDF Source:

view plain print about
<!---
 Allows for deserialization of WDDX data.
 Updated for CFMX var syntax.
 
 @param input      A valid WDDX string. (Required)
 @return Returns deserialized data. 
 @author Raymond Camden (ray@camdenfamily.com) 
 @version 2, October 16, 2002 
--->

<cffunction name="wddxDeserialize" output="false" returnType="any">
    <cfargument name="input" type="string" required="true">

    <cfset var output="">
    
    <cfwddx action="wddx2cfml" input="#input#" output="output">
    <cfreturn output>
</cffunction>
blog comments powered by Disqus

Search CFLib.org


Latest Additions

Dave Anderson Dave Anderson added
iniToStruct
20 day(s) ago

Dave Anderson Dave Anderson added
deDupeArray
20 day(s) ago

Richard Richard added
dice
22 day(s) ago

Isaac Dealey Isaac Dealey added
getRelative
a while ago

Top Rated

Darwan Leonardo Sitepu backupDatabase
Rated 5.0, 22 time(s)

Barney Boisvert indentXml
Rated 5.0, 10 time(s)

Kevin Pepperman generateSsccAsn
Rated 5.0, 4 time(s)

Raymond Camden highlightAndCrop
Rated 5.0, 4 time(s)

Created by Raymond Camden / Design by Justin Johnson