Zip

Create an object from two lists, by mapping keys from the first lists to values from the second. This is particularly useful when creating an object that has keys with dots in the key names.

Because dots usually refer to sub-objects, it can be difficult to create objects that have key names with dots in them.

For example, if you want to generate this object: {"first.name":"John","last.name":"Doe"}, you could create it using Object - Zip with these two inputs:

  • keys: [ "first.name", "last.name" ]

  • values: [ "John", "Doe" ]

Input Fields

  • keys (list of text): List of key names

  • values (list): List of values. This list should have the same number of items as keys.

Output Fields

  • object (object): Newly-created object using the keys and values provide

Related topics

Functions in Workflows

Workflow elements