CFWDDX

The CFWDDX tag serializes and de-serializes CFML data structures to the XML-based WDDX format. You can also use it to generate JavaScript statements instantiating JavaScript objects equivalent to the contents of a WDDX packet or some CFML data structures.

Syntax

<CFWDDX ACTION="action"
   INPUT="inputdata"
   OUTPUT="resultvariablename"
   TOPLEVELVARIABLE="toplevelvariablenameforjavascript"
   USETIMEZONEINFO="Yes" or "No">
ACTION

Specifies the action taken by the CFWDDX tag. Use one of the following:

  • CFML2WDDX — Serialize CFML to WDDX format

  • WDDX2CFML — Deserialize WDDX to CFML

  • CFML2JS — Serialize CFML to JavaScript format

  • WDDX2JS — Deserialize WDDX to JavaScript

INPUT

Required. The value to be processed.

OUTPUT

The name of the variable to hold ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.