Tag Link | [Null->Deserialize] | Category | Tags |
---|---|---|---|
Type | Member | Source Available | No |
Support | Preferred | Version | 5.0 |
Change | Unchanged | Data Source | Any |
Output Type | Any | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
[Null->Deserialize] accepts a single parameter which is XML that represents a Lasso value. The current value is replaced by the value represented by the parameter.
Member tags for Null can be used on values of any data type including custom, third party data types.
Note - Custom data types must be defined on the current page before an instance of that type can be deserialized. Built
[Value->Deserialize: 'XML Data']
Required Parameters | |
---|---|
Data Stream | The XML data which should be converted into a Lasso data type. |
The serialization format in LP7 is XML
To convert a type to an xml representation and then convert it back:
Use the [Null->Unserialize] tag. The following example converts an array into its xml representation using the [Null->Serialize] tag, then converts it back using the [Null->Unserialize] tag.
[Variable: 'myArray'=(Array: 'one', 'two', 'three')]
[Variable: 'XML'=$myArray->Serialize]
[Variable: 'newArray'=null]
[$newArray->(Unserialize: $XML)]
[output: $newArray]
(Array: (one), (two), (three))