Nav

entrySet

entrySet(T)

Returns a list of key-value pair objects that describe the object entries.

Transform

        
     
1
2
3
4
%dw 2.0
import dw::core::Objects
---
Objects::entrySet({a: true, b: 1})
Output

        
     
1
2
3
4
5
6
7
8
9
10
11
12
[
 {
   key: "a",
   value: true,
   attributes: null
 },
 {
   key: "b",
   value: 1,
   attributes: null
 }
]