How to map with Deserialize

Table Of Contents

  • Use case
  • Guide
  • Video guide

Use case

Deserialization of data can be defined as the process of transforming a string into a data object of a distinct type. The following data types are supported by the Alumio Deserialize mapper- JSON, NDJSON, XML, cXML, YAML or encode URL.

Note: When using Compressed Deserializer, the following file formats are supported in Alumio: .tar.gz, .gz, zip.

For instance, let’s imagine a scenario where XML data is retrieved as a string and you have to convert it into an object. With Alumio, it is possible to use this data as entity data.

Guide

Here’s an easy guide for you.

Step 1: Click on Add Data Transformer.

Step 2: Select Value Mapper.

Step 3: Within the Value Mapper, select Key Accessor from the Accessor drop-down menu.

Step 4: Click on Add Keys and specify the key (or keys) that you wish to deserialize from an entity data.

Step 5: Click on Add Mappers and select Deserialize.

Step 6: From the Deserializer drop-down list, select the data type you want to deserialize the key to ( JSON, XML, cXML, and YAML) or select the decoding of an URL encoded string to a decoded string.

Step 7: On clicking the Run Test button, you will see that the Deserialize mapper has deserialized the specified key into a workable object.

Video guide