# Nest sources

**Requires**: [sources module](https://vostok.gitbook.io/configuration/modules/sources).

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="../concepts-and-basics/configuration-sources" %}
[configuration-sources](https://vostok.gitbook.io/configuration/concepts-and-basics/configuration-sources)
{% endcontent-ref %}

{% content-ref url="../basic-scenarios/scope-sources" %}
[scope-sources](https://vostok.gitbook.io/configuration/basic-scenarios/scope-sources)
{% endcontent-ref %}
