MAPKEYS to access Nested Json

Hello,

We use the MAPKEYS function to access/change name all the keys of the Array of Json records.

Is it possible to access nested Json using MAPKEYS()? If so what is the syntax?

We have a function return a JSON Object. This has amongst other keys, an array of JSON records,

image

While using MAPKEYS on the output of the function, we can access individual keys, not sur how to access nested json. any suggestions?

Yash

@yash1

MAPKEYS function is a utility function to quickly transform your top-level keys with ease. For working with complex transformation like - nested json transform, it is recommended to write your own transformation using Custom Javascript code available under BIND Data option, Connectors > Transform Response option or in Action flow > JS Code block depending on your use case.

Hope this Helps!

1 Like