Skip to main content
Accesses values in a list where each item has a configurable key field and value field. Useful for turning a flat or nested object into a lookup map.

Fields

Key

Required. Dot-notated path to the data to use as the key in the resulting structure, e.g. sku.

Value

Required. Dot-notated path to the data to use as the value in the resulting structure, e.g. name.

Root

Optional. Dot-notated base path to scope both key and value lookups. Use this to avoid repeating a shared prefix, e.g. set root to product instead of writing product.sku and product.name.

Keys

Optional list of keys to restrict which keys are returned. Leave empty to return all keys.

Sample data

Key: sku Value: name Root: product Input:
{
    "product": {
        "sku": "A1",
        "name": "example"
    }
}
Output:
{
    "A1": "example"
}