Skip to main content
The “Flatten nested structure” transformer recursively flattens 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 it can be flatten into a single array.
[ 
  { 
    "identifier": 1 
  }, 
  { 
    "identifier": 2 
  }, 
  { 
    "identifier": 3 
  } 
] 

Fields

ChildPath

The path within the data of the structure to flatten.