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

> Découvrez comment configurer vos actions de Flow 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îne de caractères.

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

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/docs-dev-feat-init-gt-translations/2ut5cR-lHY2UVI81/docs/images/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png?fit=max&auto=format&n=2ut5cR-lHY2UVI81&q=85&s=014c33396f32a1cd8904a88c15472c3a" alt="" width="769" height="517" data-path="docs/images/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png" />
</Frame>

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

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

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

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

<h3 id="output-object-example">
  Exemple d’objet de sortie
</h3>

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

<h2 id="parse-json">
  Analyser un objet JSON
</h2>

Analyse un objet JSON contenu dans une chaîne de caractères pour le convertir en objet JSON.

<Frame>
  <img src="https://mintcdn.com/docs-dev-feat-init-gt-translations/ZC0XT2ZcfW-tPJd_/docs/images/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png?fit=max&auto=format&n=ZC0XT2ZcfW-tPJd_&q=85&s=974962511fd387d21436c7feead3e9b6" alt="" width="788" height="298" data-path="docs/images/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png" />
</Frame>

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

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

<h3 id="output-object-2">
  Objet de sortie
</h3>

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

<h3 id="output-object-example-2">
  Exemple d’objet de sortie
</h3>

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

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

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

<Frame>
  <img src="https://mintcdn.com/docs-dev-feat-init-gt-translations/k7ye6-pv0VL5gE4A/docs/images/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png?fit=max&auto=format&n=k7ye6-pv0VL5gE4A&q=85&s=151c1e874c0c9a8ff6c86a1e16012c4e" alt="" width="752" height="279" data-path="docs/images/cdy7uua7fh8z/45acWYMlTGc5ZWMzK5Cqqr/6974ea640a76d2d9cc5814225e52734a/convertjsontostring.png" />
</Frame>

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

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

<h3 id="output-object-3">
  Objet de sortie
</h3>

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

<h3 id="output-object-example-3">
  Exemple d’objet de sortie
</h3>

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