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

> JSON フローアクションを設定して、JSON オブジェクトを作成し、JSON を解析して文字列に変換する方法を学びます。

# JSON

この JSON アクションの一覧では、JSON オブジェクトの作成、JSON の解析、JSON の文字列への変換を行えます。

<div id="create-json-object">
  ## JSON オブジェクトを作成
</div>

JSON オブジェクトを作成します。これは特に、フロー内の他の Actions でその内容を再利用する場合に便利です。

<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">
  ### 入力設定
</div>

| パラメーター | 説明           |
| ------ | ------------ |
| Body   | JSON オブジェクト。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

| プロパティ    | 型      | 説明           |
| -------- | ------ | ------------ |
| `result` | オブジェクト | JSON オブジェクト。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

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

<div id="parse-json">
  ## JSONを解析
</div>

テキスト文字列に含まれるJSONオブジェクトを、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">
  ### 入力設定
</div>

| パラメータ            | 説明       |
| ---------------- | -------- |
| JSON string (必須) | JSON文字列。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

| プロパティ    | 型      | 説明                |
| -------- | ------ | ----------------- |
| `object` | オブジェクト | パースされたJSONオブジェクト。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

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

<div id="convert-json-to-string">
  ## JSONを文字列に変換
</div>

JSONオブジェクトを文字列に変換します。

<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">
  ### 入力設定
</div>

| パラメータ            | 説明                           |
| ---------------- | ---------------------------- |
| JSON オブジェクト (必須) | 文字列にシリアライズされる JSON オブジェクトです。 |

<div id="output-object">
  ### 出力オブジェクト
</div>

| プロパティ  | 型      | 説明                      |
| ------ | ------ | ----------------------- |
| `json` | String | シリアル化された JSON オブジェクトです。 |

<div id="output-object-example">
  ### 出力オブジェクトの例
</div>

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