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

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

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

_DataWeave バージョン 2.3.0 で導入されました。_​

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

<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"
       }
    }
  ]
}
```

## [](#entriesof2)entriesOf(obj: Null): Null

`entriesOf`​ を ​`null`​ 値に使用できるようにするヘルパー関数。

_DataWeave バージョン 2.4.0 で導入されました。_​