> 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/parser.md).

# parser

Con `parser` permite que cualquier dato sea transformado a su tipo de dato correspondiente, por ejemplo:

{% hint style="info" %}
Utiliza este helper principalmente cuando el formato debe ser `JSON`.
{% endhint %}

La forma de utilizarlo es ` {{parser`` `` `<mark style="color:blue;">**`value`**</mark>`}}` donde <mark style="color:blue;">**value**</mark> es la clave que vas a utilizar.

#### Estructura original

```handlebars
{
    "users": ["John", "Maria"]
}
```

{% tabs %}
{% tab title="Con parser" %}
**Sintaxis**

```handlebars
{
    "name": {{parser users.0}},
    "listado": {{parser users}}
}
```

**Resultado**

```handlebars
{
    "name": "John",
      ------^ (válido es string)
    "listado": ["John", "Maria"]
      --------- (válido es array)
}
```

{% endtab %}

{% tab title="Sin parser" %}
**Sintaxis**

```handlebars
{
    "name": {{users.0}},
    "listado": {{users}}
}
```

**Resultado**

```handlebars
{
    "name": John,
     ------^ Error: Parser.... (no es string)
    "listado": John, Maria
         ----- Error: Parser.... (no es array)
}
```

{% endtab %}
{% endtabs %}


---

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

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

The question should be specific, self-contained, and written in natural language.
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.
