Deserialization
  • 10 Mar 2021
  • 1 Minute to read
  • Dark
    Light

Deserialization

  • Dark
    Light

Article Summary

Overview

Deserialization is the process of reversing a string from a serialized format. The Serialized String becomes transformed into a format to allow its Data Structure properties to be accessible to manipulation.  

JSON Deserialize Step

Setting CategoryNameDescription
ParameterShow Only User Defined JSON TypesLimits the type dropdown list to only show user-defined JSON Data Types
ParameterIsOutputArrayChanges the step output to be a list of a type instead of a single type
ParameterJSON Type or TypeType of string that the step will Deserialize
InputsString to DeserializationThe Deserialization step input variable name
OutputJsonDeserialize1_OutputThe Deserialization step output variable that can be a list if the IsOuputArray checkbox is set to true
OutputError MessageError message output variable

XML Deserialize Step

Setting CategoryNameDescription
ParameterShow Only User Defined XML TypesLimits the type dropdown list to only show user-defined XML Data Types
ParameterXML Type or TypeType of string that the step will Deserialize
InputsString to DeserializeThe Deserialization step input variable name
OutputXmlDeserialize1_OutputThe Deserialization step output variable
OutputError MessageError message output variable

XSD Deserialize Step

Setting CategoryNameDescription
ParameterShow Only User Defined XML TypesLimits the type dropdown list to only show user-defined XML Data Types
ParameterXML Type or TypeType of string that the step will Deserialize
InputsString to DeserializeThe Deserialization step input variable name
OutputXsdDeserialize1_OutputThe Deserialization step output variable
OutputError MessageError message output variable


Example

Pre-Setup Serialization
Before creating this example, create the serialization example from the Serialization document before proceeding. 
  1. Hover over the Done path and click the plus icon.
  2. Navigate to All Steps [Catalog] > Data > Json. Select Json Deserialize and click ADD.
    XML and XSD can also be done with the Xml Deserialize and Xsd Deserialize step. 

  3. With the Json Deserialize step selected, click Unknown under the INPUTS category next to String to Deserialize and select Select From Flow. Select Json Serialize_ Output and click DONE.
  4. Uncheck Show Only User Defined JSON Type under PARAMETERS. Under the Type field, enter "account" in the text box and select Account [DecisionsFramework ].
  5. In the OUTPUTS category, select Unknown next to Output and select Rename. Then, enter "JSonDeserialize_Output" in the text box. Then, click Save on the top action bar.


Debug

  1. On the top action panel, click Debug. Then, click START DEBUGGING.
  2. Click the Json Deserialize step. Click Execution 1 and select View Output Data.
    The output is not a single Serialized String but is instead a collection of data members that make up the Account Data Type.




Was this article helpful?