2. Scenario - XmlToJson

Page / - last modified by Assala Chmiti on 2022/07/25 13:41

XmlToJson

last modified by Assala Chmiti

on 2022/07/25 13:41

Table of Contents

Introduction:

This connector is used to transform an Xml file to a Json file.

How does the connector work?:

There is no format file used for the connector XmlToJson. What happened in the transformation is that the XML tag is tranformed to a json field.

The tag that contains sub tags in the XML file are converted to object in braces ({}), their name-value pairs are separated by a comma (,), and the name and value in a pair are separated by a colon (:). Names in an object are strings, whereas values may be of any of the seven value types, including another object or an array.

The name of the xml tag is converted to the name of the field and the content of the xml tag is converted to the content of the field.

Example:

The connector properties