> For the complete documentation index, see [llms.txt](https://vostok.gitbook.io/configuration/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://vostok.gitbook.io/configuration/advanced-scenarios/nest-sources.md).

# Nest sources

**Requires**: [sources module](/configuration/modules/sources.md).

This operation allows to embed source's data into a nested object section:

```
var source = new ObjectSource(new {A = 1, B = 2});

var nestedSource = source.Nest("obj1", "obj2");
```

```
Data in nestedSource:

{
    "obj1":
    {
        "obj2":
        {
            "A": "1",
            "B": "2"
        }
    }
}
```

### Related pages

{% content-ref url="/pages/-M6UQMklC2EtQ\_nAUDjI" %}
[Configuration sources](/configuration/concepts-and-basics/configuration-sources.md)
{% endcontent-ref %}

{% content-ref url="/pages/-M6UVluEtzPV2Wnw3ecH" %}
[Scope sources](/configuration/basic-scenarios/scope-sources.md)
{% endcontent-ref %}
