> ## Documentation Index
> Fetch the complete documentation index at: https://auth0.generaltranslation.app/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.

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

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/generaltranslationinc/YjN60X_U-1aBZwRP/docs/images/fr-ca/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png?fit=max&auto=format&n=YjN60X_U-1aBZwRP&q=85&s=d60eec055ac46202d2aad8b1677a47b9" alt="" width="769" height="517" data-path="docs/images/fr-ca/cdy7uua7fh8z/1zJEENRPI2uONuCApPY98p/f1fce88a42fb13fb9856c95c562bd506/createjsonobject.png" />
</Frame>

<div id="input-settings">
  ### Paramètres de saisie
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>Paramètre</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Corps</td>

      <td>
        L’objet JSON.
      </td>
    </tr>
  </tbody>
</table>

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

<table class="table">
  <thead>
    <tr>
      <th><b>Propriété</b></th>
      <th><b>Type</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`result`</td>
      <td>Objet</td>
      <td>L’objet JSON.</td>
    </tr>
  </tbody>
</table>

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

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

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

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

<Frame>
  <img src="https://mintcdn.com/generaltranslationinc/op3qeo8SlxWCJLLV/docs/images/fr-ca/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png?fit=max&auto=format&n=op3qeo8SlxWCJLLV&q=85&s=acb669aad458bbfea648165909db97f1" alt="" width="788" height="298" data-path="docs/images/fr-ca/cdy7uua7fh8z/5HjIGbBiWik1XozAZczxg5/fe2b0c6f7c657c4209921f1a0978e54b/parsejson.png" />
</Frame>

<div id="input-settings">
  ### Paramètres de saisie
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>Paramètre</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Chaîne JSON (obligatoire)</td>

      <td>
        La chaîne JSON.
      </td>
    </tr>
  </tbody>
</table>

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

<table class="table">
  <thead>
    <tr>
      <th><b>Propriété</b></th>
      <th><b>Type</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`object`</td>
      <td>Objet</td>
      <td>L’objet JSON analysé.</td>
    </tr>
  </tbody>
</table>

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

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

<div id="convert-json-to-string">
  ## Convert JSON to string (Convertir du JSON en chaîne)
</div>

Convertit un objet JSON en chaîne.

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

<div id="input-settings">
  ### Paramètres de saisie
</div>

<table class="table">
  <thead>
    <tr>
      <th><b>Paramètre</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>Objet JSON (obligatoire)</td>

      <td>
        L’objet JSON qui sera sérialisé en une chaîne.
      </td>
    </tr>
  </tbody>
</table>

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

<table class="table">
  <thead>
    <tr>
      <th><b>Propriété</b></th>
      <th><b>Type</b></th>
      <th><b>Description</b></th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>`json`</td>
      <td>Chaîne </td>
      <td>L’objet JSON sérialisé.</td>
    </tr>
  </tbody>
</table>

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

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