All other techniques in this section work if the destination object (TO
) is a flat object or multiple flat objects, which covers 99% of all cases when we get data from APIs or web services.
What if you need to create a nested XML or JSON document?
If your destination object (TO
) is exactly the same as your source object (FROM
) in terms of their structure, then you are done. If there is no Mapping and you are just converting it from one Format to another (for example, from XML to JSON), just specify your source and destination Connections and Formats and let Etlworks Integrator do the magic.
If there is a Mapping, or if the source structure is not equal to the destination structure, you will need to use a JavaScript transformation.
Read how to create a complex nested data object using JavaScript.
Comments
0 comments
Please sign in to leave a comment.