CFLib.org – Common Function Library Project

WDDXDeserialize(input)

Last updated October 16, 2002

author

Raymond Camden

Version: 2 | Requires: CF6 | Library: CFMLLib

Description:
Allows for deserialization of WDDX data.

Return Values:
Returns deserialized data.

Example:

<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:

<!---
 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

Kevin Cotton added
date2ExcelDate
May 5, 2016

Raymond Camden added
CapFirst
April 25, 2016

Chris Wigginton added
loremIpsum
January 18, 2016

Gary Stanton added
calculateArrival...
November 19, 2015

Sebastiaan Naafs - van Dijk added
getDaysInQuarter
November 13, 2015

Created by Raymond Camden / Design by Justin Johnson