---
schema_version: "1"
id: 7ecc2938d96d4cf06e65056eed3a0f3a5ec4ba41fb42b548616f6ab21be5853c
title: entrySet
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.6/dw-objects-functions-entryset.md
canonical_url: https://docs.mulesoft.com/dataweave/2.6/dw-objects-functions-entryset
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 2a3cd1aff3ea4f7ab230e81cc255922df245665018a17b675ef93d236ba4af4c
description: MuleSoft Documentation Site
release: "2.6"
latest: false
---
---
product: DataWeave
version: 2.6
---

# entrySet

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

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

Returns an array of key-value pairs that describe the key, value, and any attributes in the input
object.

_This function is **Deprecated**. Use [dw::Core::entriesOf](https://docs.mulesoft.com/dataweave/2.6/dw-core-functions-entriesof), instead._

### Parameters

<table><colgroup><col> <col></colgroup><thead><tr><th>Name</th><th>Description</th></tr></thead><tbody><tr><td><p><code>obj</code></p></td><td><p>The <code>Object</code> to describe.</p></td></tr></tbody></table>

### Example

This example returns the key, value, and attributes in the object specified in the variable `myVar`.

#### Source

```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) }
```

#### Output

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