---
schema_version: "1"
id: a45adabe7a35f1c515238d6489d098ecaa6e94f09b2c60b2ef4eee4d327bf7c2
title: entrySet
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/dataweave/2.4/dw-objects-functions-entryset.md
canonical_url: https://docs.mulesoft.com/jp/dataweave/2.4/dw-objects-functions-entryset
source_site: docs.mulesoft.com
content_type: documentation
content_hash: ce0a6b905ce170da75173aab96322491ad608bd3869dd83cd88276a5cde9980c
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
# entrySet

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

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

_この関数は​**非推奨**​です。代わりに [dw::Core::entriesOf](https://docs.mulesoft.com/jp/dataweave/2.4/dw-core-functions-entriesof) を使用してください。_

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

<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">表す対象の ​<code>Object</code>​。</p></td>
</tr>
</tbody>
</table>

### [](#例)例

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

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

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

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

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