[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-in data type and custom data types which are defined in Lasso Startup can be deserialized at any time.
[Value->Deserialize: 'XML Data']
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))
Tag Link | [Null->Deserialize] | Category | Tags |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 5.0 |
Output Type | Any | Security | None |
Implementation | LCAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft