• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. Sharing Data with WDDX > Serializing and Deserializing Data

20.2. Serializing and Deserializing Data

In CFML, the process of serializing and deserializing data is handled by the CFWDDX tag. The following sections step through the process of using the tag to serialize and deserialize various simple and complex datatypes. Numerous examples are provided to make the concepts as clear as possible.

20.2.1. Serializing and Deserializing Simple Values

The easiest types of values to work with are simple values, as simple values only consist of numbers, strings, Boolean, date/time values, and null datatypes. The process of serializing and deserializing simple values then is straightforward. Example 20-1 serializes an example of each simple datatype (boolean, dateTime, null, number, and string) and displays the resulting WDDX packets in an HTML table so that you can see how the structure of each packet varies depending on the datatype represented.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint