Wiki source code of XmlToJson
Last modified by Assala Chmiti on 2022/07/25 13:41
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | ==== __** Introduction:**__ ==== | ||
2 | |||
3 | This connector is used to transform an Xml file to a Json file. | ||
4 | |||
5 | ==== ==== | ||
6 | |||
7 | ==== __**How does the connector work?:**__ ==== | ||
8 | |||
9 | 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. | ||
10 | |||
11 | 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. | ||
12 | |||
13 | 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. | ||
14 | |||
15 | __//**Example:**//__ | ||
16 | |||
17 | |||
18 | [[image:1658749258559-560.png]] | ||
19 | |||
20 | |||
21 | |||
22 | ==== __**The connector properties**__ ==== | ||
23 | |||
24 | [[image:1658749167501-531.png]] | ||
25 | |||
26 | [[image:1658749220793-931.png||height="362" width="385"]] | ||
27 | |||
28 |