---
schema_version: "1"
id: 0012fd6f03238bca210f6b983eaef0d362a55c80791a46e8cf38f40156f6e57c
title: JSONPath 式のビルド
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/rpa-builder/6.5/building-jsonpath-expressions.md
canonical_url: https://docs.mulesoft.com/jp/rpa-builder/6.5/building-jsonpath-expressions
source_site: docs.mulesoft.com
content_type: documentation
content_hash: cbbc802b6e7758c530e9eba70f1ed1d2caf6e7cf67652e8f490c3cd64c943cb8
description: MuleSoft Documentation Site
release: "6.5"
latest: false
---
# JSONPath 式のビルド

JSONPath 式は、XPath 式が XML ドキュメントの各部を参照するのと同じように、JSON 構造をナビゲートします。

JSONPath 式の作成プロセスを簡素化するには、RPA Builder に含まれる JSONPath 式ビルダーを使用します。このツールを開くには、上部メニューバーの (​![2.5%](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/jsonpath-expression-builder-button.png) ボタン\]​) をクリックするか、JSONPath 式をサポートするアクションステップ (JSON Query、REST Call、AWS) 内をクリックします。

上部のメニューバーから JSONPath 式ビルダーを開くと、アクションステップ内で直接割り当てるのではなく、ビルドされた JSONPath 式をコピーしてさらに使用できます。

## [](#jsonpath-builder)JSONPath 式ビルダーを使用した式のビルド

JSONPath 式ビルダーを使用して JSONPath 式を作成する手順は、次のとおりです。

1. **\[Build JSONPath Expression (JSONPath 式のビルド)\]**​ (​![2.5%](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/jsonpath-expression-builder-button.png)\]​ ボタン) ボタンをクリックします。
2. **\[Import from file (ファイルからインポート)\]**​をクリックして JSON ファイルを開き、選択するか、テキストボックスに直接 JSON を貼り付けます。
    
    ![JSONPath 式ビルダーツールのファイルのインポートウィンドウ](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/jsonpath-expression-builder-import.png)
3. **\[Next (次へ)\]**​ をクリックします。
4. **\[JSON\]**​ パネルでオブジェクトをクリックすると、オブジェクトの JSONPath 式が抽出されます。
    
    ![JSONPath 式ビルダーツール](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/jsonpath-expression-builder.png)
    
    JSON 要素をクリックすると、​**\[Result (結果)\]**​ パネルが更新されて、式が抽出する値が表示されます。また、​**\[JSONPath expression (JSONPath 式)\]**​ 項目が更新されて、指定された値を抽出するためにビルドされた式が表示されます。
5. **\[Next (次へ)\]**​ をクリックします。
6. この時点で式の検索条件を設定できます。詳しくは​[JSONPath 式の検索条件の設定](#set-filters)​を参照してください。
7. **\[Apply (適用)\]**​ をクリックして確認し、ビルドされた JSONPath 式を現在のアクションステップで使用します。
    
    必要に応じて、​**\[Copy JsonPath expression to clipboard (JsonPath 式をクリップボードにコピー)\]**​ (​![2%](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/copy-filter-icon.png) ボタン\]​) ボタンをクリックして式をコピーできます。

JSONPath の詳細については、 [XPath for JSON](https://goessner.net/articles/JsonPath/)​を参照してください。

## [](#set-filters)JSONPath 式の検索条件の設定

JSONPath 式を作成するための最後のステップでは、ビルダーで作成した式を適用する前に、条件を指定して検索条件を設定できます。

![JSONPath 式ビルダーツールの検索条件画面](/mulesoft/current/ja-jp/rpa-builder/6.5/_images/jsonpath-expression-builder-filter.png)

<table><tbody><tr><td><i class="conum" data-value="1"></i><b>1</b></td><td>完成した式の任意の配列要素 (​<code>[*]</code>​) をクリックします。</td></tr><tr><td><i class="conum" data-value="2"></i><b>2</b></td><td>検索条件を選択します。</td></tr><tr><td><i class="conum" data-value="3"></i><b>3</b></td><td><strong>[Add new filter (新規検索条件の追加)]</strong>​ (​<span class="image"><img src="https://docs.mulesoft.com/jp/rpa-builder/6.5/_images/check-circle.png" alt="2.5%" width="2.5%" height="[Accept (受け入れ)"></span>]​ ボタン) ボタンをクリックします。</td></tr></tbody></table>

## [](#関連情報)関連情報

- [JSON Online Editor](https://jsoneditoronline.org/)
- [JSONPath Evaluator](https://jsonpath.com/)