> ## Documentation Index
> Fetch the complete documentation index at: https://translations.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> 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 de caractères.

# JSON

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

<div id="create-json-object">
  ## Créer un objet JSON
</div>

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

<Frame>
  <img src="https://mintcdn.com/translations/eVsQcTnbClN-oB7d/docs/images/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png?fit=max&auto=format&n=eVsQcTnbClN-oB7d&q=85&s=57f9d8f8e8aef79cbd5207649830f32f" alt="" width="769" height="517" data-path="docs/images/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png" />
</Frame>

<div id="input-settings">
  ### Paramètres d’entrée
</div>

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

<div id="output-object">
  ### Objet de sortie
</div>

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

### Exemple d’objet de sortie

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

<div id="parse-json">
  ## Analyser du JSON
</div>

Analyse une chaîne de texte contenant un objet JSON et la convertit en objet JSON.

<Frame>
  <img src="https://mintcdn.com/translations/MV7tE-x71x8RWRES/docs/images/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png?fit=max&auto=format&n=MV7tE-x71x8RWRES&q=85&s=7f5221a7f0b0221d7d6fa47687845124" alt="" width="788" height="298" data-path="docs/images/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png" />
</Frame>

<div id="input-settings">
  ### Paramètres d’entrée
</div>

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

<div id="output-object">
  ### Objet de sortie
</div>

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

### Exemple d’objet de sortie

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

<div id="convert-json-to-string">
  ## Convertir JSON en chaîne de caractères
</div>

Convertit un objet JSON en chaîne de caractères.

<Frame>
  <img src="https://mintcdn.com/translations/pvjQqAy3EB2TK6NP/docs/images/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png?fit=max&auto=format&n=pvjQqAy3EB2TK6NP&q=85&s=94ce35f89d237a63fc2b84faba36b7ec" alt="" width="752" height="279" data-path="docs/images/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png" />
</Frame>

<div id="input-settings">
  ### Paramètres d’entrée
</div>

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

<div id="output-object">
  ### Objet de sortie
</div>

| Propriété | Type   | Description                      |
| --------- | ------ | -------------------------------- |
| `json`    | String | L’objet JSON converti en chaîne. |

<div id="output-object-example">
  ### Exemple d'objet de sortie
</div>

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