# Flatten nested structure Transformer

**URL:** <https://forum.alumio.com/t/flatten-nested-structure-transformer/1424>\
**Category:** Transformers\
**Created:** [November 18, 2024, 10:09am UTC](https://forum.alumio.com/t/flatten-nested-structure-transformer/1424 "2024-11-18T10:09:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![o.plokha](https://forum.alumio.com/user_avatar/forum.alumio.com/o.plokha/32/337_2.png) [@o.plokha](https://forum.alumio.com/u/o.plokha)\
**Post date:** [November 18, 2024, 10:09am UTC](https://forum.alumio.com/t/flatten-nested-structure-transformer/1424/1 "2024-11-18T10:09:06Z")

</div>

### 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.

```auto
{ "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.

```auto
[{ "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.

 ![image](https://alumio-forum.s3.dualstack.eu-central-1.amazonaws.com/uploads/original/2X/2/2a8140874c8c4b3f4f505ba03409a6cfbc80eec0.jpeg)
