Table of Contents
The commands attempts to transform data from the source data type to the target data type. Currently this commands transforming data from and to:
- JSON
- XML
- YAML
- CSV
There are no requirements to use this command.
Enter the required input keys:
- data
- sourceFormat
- targetFormat
The expected result is to received the output data in the target format.
- Transforming XML to JSON Input:
<xml name="John" age="25">Hello</xml>
Output:
{
"xml": {
"@name": "John",
"@age": 25,
"$": "Hello"
}
}
- Transforming JSON to CSV Input:
[
{
"name": "John",
"age": 25
},
{
"name": "Monica",
"age": 23
}
]
Output:
name,age
John,25
Monica,23