---
schema_version: "1"
id: 9b4e94b203c0cdc5fafcb25b353a85b13d3ac3d059b454618aadea7b429b439a
title: entriesOf
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.3/dw-core-functions-entriesof.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.3/dw-core-functions-entriesof
source_site: docs.mulesoft.com
content_type: documentation
content_hash: c0bb7456a199ee233337b0dafd6d911d330148d2edcc05369a08dc51a5ac022b
description: MuleSoft Documentation Site
release: "2.3"
latest: false
---
# entriesOf

## [](#entriesof1)entriesOf(T): Array<​{| key: Key, value: Any, attributes: Object |}​>

入力オブジェクトのキー、値、任意の属性を表すキー - 値ペアの配列を返します。

_DataWeave 2.3.0 で導入されました。Mule 4.3 以降でサポートされます。_​

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

<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>obj</code></p></td>
<td class="tableblock halign-left valign-top"><p class="tableblock">説明するオブジェクト。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

次の例では、変数 ​`myVar`​ で指定されたオブジェクトからキー、値、属性を返します。オブジェクトは ​`read`​ 関数への XML 入力です。

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

```DataWeave
%dw 2.0
var myVar = read('<xml attr="x"><a>true</a><b>1</b></xml>', 'application/xml')
output application/json
---
{ "entriesOf" : entriesOf(myVar) }
```

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

```JSON
{
  "entriesOf": [
    {
       "key": "xml",
       "value": {
         "a": "true",
         "b": "1"
       },
       "attributes": {
         "attr": "x"
       }
    }
  ]
}
```