User Guide
Chapter 3: WDDX JavaScript Objects 563
object
Instance name of the WddxSerializer object.
name
Property to be serialized.
obj
Instance name of the value to be serialized.
Return
value
Boolean. Returns True if serialization was successful and False if an error occurs.
Usage Internal. You do not typically call this function.
Example This example is from the WddxSerializer serializeValue function:
...
// Some generic object; treat it as a structure
this.write("<struct>");
for (prop in obj)
{
bSuccess = this.serializeVariable(prop, obj[prop]);
if (! bSuccess)
{
break;
}
}
this.write("</struct>");
...
serializeValue
Recursively serializes all eligible data in a passed instance. Data that can be serialized
includes:
• String
• Number
• Boolean
• Date
• Array
• Recordset
• Any JavaScript object
This function serialize null values as empty strings.
Syntax
object
.serializeValue(
obj
)