> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-docs-event-stream-action-templates.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON

> Découvrez comment configurer vos actions de flux JSON pour créer des objets JSON, analyser du JSON et convertir du JSON en chaîne.

Cette liste d’actions JSON vous permet de créer, d’analyser et de convertir du JSON en chaînes.

## Create JSON object (Créer un objet JSON)

Crée un objet JSON. Ceci est particulièrement utile pour réutiliser son contenu dans d’autres actions du flux.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/i2ZmWeCuZRFq3k1v/docs/images/fr-ca/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png?fit=max&auto=format&n=i2ZmWeCuZRFq3k1v&q=85&s=c57b0c4fc120734cc058e1ea42ec6c63" alt="" width="769" height="517" data-path="docs/images/fr-ca/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png" />
</Frame>

### Paramètres de saisie

| Paramètre | Description   |
| --------- | ------------- |
| Corps     | L’objet JSON. |

### Objet de sortie

| Propriété | Type  | Description   |
| --------- | ----- | ------------- |
| `result`  | Objet | L’objet JSON. |

### Exemple d’objet de sortie

```json lines theme={null}
{
	"result": {
		"name": "John Doe"
	}
}
```

## Parse JSON (Analyser du JSON)

Analyse un objet JSON contenu dans une chaîne de texte dans un objet JSON.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/XIL2NucFdH91gJS_/docs/images/fr-ca/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png?fit=max&auto=format&n=XIL2NucFdH91gJS_&q=85&s=4323968b116651987d288dd5f857cdc6" alt="" width="788" height="298" data-path="docs/images/fr-ca/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png" />
</Frame>

### Paramètres de saisie

| Paramètre                 | Description     |
| ------------------------- | --------------- |
| Chaîne JSON (obligatoire) | La chaîne JSON. |

### Objet de sortie

| Propriété | Type  | Description           |
| --------- | ----- | --------------------- |
| `object`  | Objet | L’objet JSON analysé. |

### Exemple d’objet de sortie

```json lines theme={null}
{
  "object": {
    "name": "John Doe"
  }
}
```

## Convert JSON to string (Convertir du JSON en chaîne)

Convertit un objet JSON en chaîne.

<Frame>
  <img src="https://mintcdn.com/docs-dev-docs-event-stream-action-templates/V_1qawcJogUCcG-n/docs/images/fr-ca/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png?fit=max&auto=format&n=V_1qawcJogUCcG-n&q=85&s=bd054300a69dae6933376c8f6f2aeba4" alt="" width="752" height="279" data-path="docs/images/fr-ca/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png" />
</Frame>

### Paramètres de saisie

| Paramètre                | Description                                    |
| ------------------------ | ---------------------------------------------- |
| Objet JSON (obligatoire) | L’objet JSON qui sera sérialisé en une chaîne. |

### Objet de sortie

| Propriété | Type   | Description             |
| --------- | ------ | ----------------------- |
| `json`    | Chaîne | L’objet JSON sérialisé. |

### Exemple d’objet de sortie

```javascript lines theme={null}
{
  "json": "{\"name\":\"John Doe\"}"
}
```
