Data type comparisons
The following table compares the basic WDDX data types with the data types to which they
correspond in the languages and technologies commonly used on the web:
WDDX
CFML
null
N/A
boolean
Boolean
number
Number
dateTime
DateTime
string
String
array
Array
struct
Structure
recordset
Query
object
binary
Binary
Time zone processing
Producers and consumers of WDDX packets can be in geographically dispersed locations.
Therefore, it is important to use time zone information when serializing and deserializing data, to
ensure that date-time values are represented correctly.
The
cfwddx
action=cfml2wddx
zone information in serializing the date-time data. In the JavaScript implementation,
is a property of the
useTimezoneInfo
value is True.
useTimezoneInfo
Date-time values in WDDX are represented using a subset of the ISO8601 format. Time zone
information is represented as an hour/minute offset from Coordinated Universal Time (UTC);
for example, "2002-9-8T12:6:26-4:0".
When the
tag deserializes WDDX to CFML, it automatically uses available time zone
cfwddx
information, and converts date-time values to local time. In this way, you do not need to worry
about the details of time zone conversions.
However, when the JavaScript objects supplied with ColdFusion deserialize WDDX to JavaScript
expressions, they do not use time zone information, because in JavaScript it is difficult to
determine the time zone of the browser.
XML
Schema
Java
N/A
null
boolean
java.lang.Boolean
number
java.lang.Double
dateTime
java.lang.Date
string
java.lang.String
N/A
java.lang.Vector
N/A
java.lang.
Hashtable
N/A
coldfusion.run
time.QueryTable
binary
byte[]
tag
useTimezoneInfo
WddxSerializer
Moving complex data across the web with WDDX
ECMAScript/
JavaScript
COM
null
VT_NULL
boolean
VT_BOOL
number
VT_R8
Date
VT_DATE
string
VT_BSTR
Array
VT_ARRAY |
VT_VARIANT
Object
IWDDXStruct
WddxRecordset
IWDDXRecordset
WddxBinary
V_ARRAY | UI1
attribute specifies whether to use time
object. In both cases the default
701
Need help?
Do you have a question about the COLDFUSION MX 61-DEVELOPING COLDFUSION MX and is the answer not in the manual?
Questions and answers