# JSLT式を使ってJSON形式間でメッセージを変換

このシナリオは、Talend ESB、Talend Data Services Platform、Talend Real-Time Big Data Platform、Talend Data Fabricにのみ適用されます。

このシナリオでは、Studioリポジトリー、ローカルファイルシステム、cJSLTコンポーネントで指定されたテンプレートを使い、JSON形式間でメッセージを変換する方法を説明します。

このシナリオでは、Studioリポジトリーとローカルファイルシステムにあり、次の内容を持つdemo.jsltというJSONテンプレートファイルが使用されます：

```
{
  "firstName": .givenName,
  "lastName": .sureName,
  "fullName": .givenName + " " + .sureName,
  "fileName": split(.path, "/")[-1],
  "unixTime": round(now() * 1000),
  "status": $headers.responseCode,
  * - givenName, sureName : .
}
```

Studioでリソースを作成する方法の詳細は、[ルートリソースを作成](https://help.qlik.com/talend/ja-JP/studio-user-guide/8.0/creating-route-resource)をご覧ください。

### このセクション内

* [コンポーネントをドロップしてリンク](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-json-processing/cjslt-dropping-and-linking-components)
* [コンポーネントを設定](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-json-processing/cjslt-configuring-components)
* [コードを表示させてルートを実行](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-json-processing/cjslt-viewing-code-and-executing-route)

**関連資料**

[cJSLT](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-json-processing/cjslt "[JSLT templates] (JSLTテンプレート)を使ってJSONメッセージを変換します。")

**関連情報**

[cTimer](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-orchestration/ctimer)

[cSetBody](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-setbody/csetbody)

[cLog](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-logs-and-errors/clog)

[cDirect](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-direct/cdirect)

[cMulticast](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-multicast/cmulticast)

[cSetHeader](https://help.qlik.com/talend/ja-JP/mediation-components/8.0/mediation-setheader/csetheader)