Lasso Soft Inc. > Home

[Null->Deserialize]

[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.

  • Syntax
  • Parameters
[Value->Deserialize: 'XML Data']
Required Parameters
Value The value of any data type which will be replaced by the unserialized value.
Data Stream The XML data which should be converted into a Lasso data type.
Examples

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]
Result:
(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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft