Table of contents
- General description
- The key field of the “Flatten nested structure” Transformer
General description
The “Flatten nested structure” Transformer helps recursively flatten a nested data structure.
For example, the data structure below represents a nested product category tree structure.
{ "identifier": 1, "categories": [ { "identifier": 2, "categories": [ { "identifier": 3 } ] } ] }
By using the “Flatten nested structure” Transformer, the data structure can be flattened into a single array.
[ { "identifier": 1 }, { "identifier": 2 }, { "identifier": 3 } ]
The key field of the “Flatten nested structure” Transformer
- ChildPath
This specifies the path within the data that points to the structure to be flattened.