Skip to main content
Version: Next

Map Keys Of Object

Enables to iterate through entries (key, value) of the object and change keys using lambda

Description

Creates an object with the same values as the 'Source' object and the keys generated by running each property of the object through the 'Iteratee'.

Example:

  • inputs

    • source = { "user": "barney", "age": 36, "active": true }
    • iteratee = (key, value, object) => key 'Concat' value
  • outputs

    • result = { "userbarney": "barney", "age36": 36, "activetrue": true }

Inputs

  • Source (Object): The object to iterate over. JSON object or string
  • Iteratee (Object Iteratee): The predicate function that is invoked for each entry (key, value).
    Inputs:
    - key (string): The current property of the object.
    - value (object): The properties' value.
    - object (Object): The current object.

    Outputs:
    - result (String): Updated key.

Outputs

  • Result (Object): The new mapped object in JSON
  • Error Flow (Error Flow): Triggered by providing incorrect json string or object