> For the complete documentation index, see [llms.txt](https://docs.videsk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.videsk.io/es-developers/webhooks/helpers/object.md).

# #object

Con `#object` al igual que con el helper `#array` podrás retornar el valor válido, pero también permite seleccionar o filtrar `keys` dentro del objeto.

#### Estructura original

```json
{
    "user": {
        "id": "60cbc69048f3bd7cc732e028",
        "email": "john.doe@example.com",
        "roles": ["61d361eb90ed8cb03f9f8315", "61d361f8025599da830659ff"],
        "enabled": true,
        "createdAt": "2020-01-07T02:47:40.289+00:00",
    }
}
```

### Sin modificación del esquema

Por defecto, no es posible seleccionar un `Object` con sintaxis mustache, por lo que puedes usar este helper para retornar un `Object` válido.

{% tabs %}
{% tab title="Con #object" %}
**Sintaxis**

```handlebars
{{#object user}}{{/object}}
```

**Resultado**

```json
{
   "id": "60cbc69048f3bd7cc732e028",
   "email": "john.doe@example.com",
   "roles": ["61d361eb90ed8cb03f9f8315", "61d361f8025599da830659ff"],
   "enabled": true,
   "createdAt": "2020-01-07T02:47:40.289+00:00",
 }
```

{% endtab %}

{% tab title="Sin #object" %}
**Sintaxis**

```handlebars
{{user}}
```

**Resultado**

```javascript
[object Object]
```

{% endtab %}
{% endtabs %}

### Modificando el esquema

Este helper no solo ayuda a retonar un `Object` válido, si no que también seleccionar o filtrar ciertos `keys` o campos del `Object`.

{% tabs %}
{% tab title="Selección individual" %}
**Sintaxis**

```handlebars
{{#object user}}id{{/object}}
```

**Resultado**

```json
{
    "id": "60cbc69048f3bd7cc732e028"
}
```

{% endtab %}

{% tab title="Selección multiple" %}
**Sintaxis**

```handlebars
{{#object user}}id,email,enabled{{/object}}
```

**Resultado**

```json
{
    "id": "60cbc69048f3bd7cc732e028",
    "email": "john.doe@example.com",
    "enabled": true
}
```

{% endtab %}
{% endtabs %}

{% hint style="danger" %}
No escribas nombre de claves o `keys` dentro del helper `#object` como `String`, es decir, con comillas dobles o simples.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.videsk.io/es-developers/webhooks/helpers/object.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
