---
schema_version: "1"
id: b4f2c87d13d8e723829296bfa5562e9dfc2b9e800995ceac058c1522bd916d0f
title: mapLeafValues
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-tree-functions-mapleafvalues.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-tree-functions-mapleafvalues
source_site: docs.mulesoft.com
content_type: documentation
content_hash: a6410cfb4006c93ff5145fbe0179aee46b8ae95dfe66333bd24e44919bf11617
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# mapLeafValues

## [](#mapleafvalues1)mapLeafValues(Any, (value: Any, path: Path) -> Any): Any

ツリー内のターミナル (リーフ) ノードをマップします。

リーフノードはオブジェクトまたは配列を値として持つことはできません。

### [](#パラメーター)パラメーター

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 25%;">
<col style="width: 75%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">名前</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>value</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">マップする値。</p></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock">​<code>callback</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">マッパー関数。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、すべての文字列値を大文字に変換します。

#### [](#ソース)ソース

```DataWeave
%dw 2.0
import * from dw::util::Tree
output application/json
---
 {
     user: [{
         name: "mariano",
         lastName: "achaval"
     }],
     group: "data-weave"
 } mapLeafValues (value, path) -> upper(value)
```

#### [](#出力)出力

```Json
{
   "user": [
     {
       "name": "MARIANO",
       "lastName": "ACHAVAL"
     }
   ],
   "group": "DATA-WEAVE"
 }
```