Whatever message this page gives is out now! Go check it out!
<struct> <var name='a'> <string>Property a</string> </var> <var name='b'> <string>Property b</string> </var> </struct> </var> |
JavaScript | CFScript |
x = new Object();x.a = "Property a";x.b = "Property b"; | x = structNew();x.a = "Property a";x.b = "Property b"; |
Data type | Description |
Null | Null values in WDDX are not associated with a type such as number or string. The tag converts WDDX Nulls to empty strings. |
Numbers | WDDX documents use floating-point numbers to represent all numbers. The range of numbers is restricted to /-1.7E/-308. The precision is restricted to 15 digits after the decimal point. |
Date-time values | Date-time values are encoded according to the full form of ISO8601; for example, 2002-9-15T09:05:32+4:0. |
Strings | Strings can be of arbitrary length and must not contain embedded nulls. Strings can be encoded using double-byte characters. |
Data type | Description |
Array | Arrays are integer-indexed collections of objects of arbitrary type. Because most languages start array indexes at 0, while CFML array indexes start at 1, working with array indexes can lead to nonportable data. |
Structure | Structures are string-indexed collections of objects of arbitrary type, sometimes called associative arrays. Because some of the languages supported by WDDX are not case-sensitive, no two variable names in a structure can differ only in their case. |
Recordset | Recordsets are tabular rows of named fields, corresponding to ColdFusion query objects. Only simple data types can be stored in recordsets. Because some of the languages supported by WDDX are not case-sensitive, no two field names in a recordset can differ only in their case. Field names must satisfy the regular expression _A-Za-z_.0-9A-Za-z* where the period (.) stands for a literal period character, not "any character". |
Binary | The binary data type represents strings (blobs) of binary data. The data is encoded in MIME base64 format. |
WDDX | CFML | XMLSchema | Java | ECMAScript/JavaScript | COM |
null | N/A | N/A | null | null | VT_NULL |
boolean | Boolean | boolean | java.lang.Boolean | boolean | VT_BOOL |
number | Number | number | java.lang.Double | number | VT_R8 |
dateTime | DateTime | dateTime | java.lang.Date | Date | VT_DATE |
string | String | string | java.lang.String | string | VT_BSTR |
array | Array | N/A | java.lang.Vector | Array | VT_ARRAY | VT_VARIANT |
struct | Structure | N/A | java.lang.Hashtable | Object | IWDDXStruct |
recordset | Query object | N/A | coldfusion.runtime.QueryTable | WddxRecordset | IWDDXRecordset |
binary | Binary | binary | byte[] | WddxBinary | V_ARRAY | UI1 |