> 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

A continuación, podrás encontrar la documentación de como utilizar este helper.

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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
