Copy as Markdown View as Markdown (opens in new tab) View on GitHub (opens in new tab) Open in... ChatGPT (opens in new tab) Claude (opens in new tab) Perplexity (opens in new tab) namesOf namesOf(obj: Object): Array<String> Returns an array of strings with the names of all the keys within the given object. Introduced in DataWeave version 2.3.0. Parameters Name Description obj The object to evaluate. Example This example returns the keys from the key-value pairs within the input object. Source %dw 2.0 output application/json --- { "namesOf" : namesOf({ "a" : true, "b" : 1}) } Output { "namesOf" : ["a","b"] } namesOf(obj: Null): Null Helper function that enables namesOf to work with a null value. Introduced in DataWeave version 2.4.0.