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

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

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

このメソッドは​**非推奨**​です。代わりに、Core モジュールの ​`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"
       }
    }
  ]
}
```