> ## Documentation Index
> Fetch the complete documentation index at: https://docs.alumio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Object: Get keys

> Returns the keys of an object as an array.

Returns just the keys of an object as a plain list, throwing away the values. Use this when you care about which fields are present rather than what they contain, for example to produce a list of the attribute names on a product, or to feed the key names into a later step.

The result is a numbered list of the key names, in the order they appeared in the object.

This documentation describes: [Schema](/schemas/mapper/list-keys)

## Fields

This mapper has no settings. Point it at the object whose keys you want and it transforms whatever value it receives.

## Sample data

Input:

```json theme={null}
{ "attributes": { "color": "red", "size": "M", "material": "cotton" } }
```

Output:

```json theme={null}
{ "attributes": ["color", "size", "material"] }
```

```json Configuration theme={null}
{
  "prototype": "list-keys",
  "parameters": {}
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.