# Keys List

List own enumerable keys using lodash _.keys

> Canonical page: https://elysiatools.com/en/tools/keys-list

- **Category:** Data Processing

- **Keywords:** keys, object, lodash, list, properties

## Overview

List own enumerable keys of an object.

**Highlights:**
- Uses lodash `_.keys`
- Own properties only
- Returns a JSON array of keys

**Example:**
- Object: `{"a":1,"b":2}`
- Result: `["a","b"]`

## Inputs

- **Object** (textarea): Enter a JSON object

## When to use

- When you need to verify the structure of a complex JSON object.
- When you want to extract a list of field names for documentation or mapping purposes.
- When you need to programmatically identify available keys in a data payload.

## How it works

- Paste your JSON object into the input field.
- The tool processes the input using the lodash _.keys function.
- It filters out inherited properties to return only the object's own enumerable keys.
- The output is returned as a clean, formatted JSON array of strings.

## Use cases

- Quickly auditing API response schemas to identify available data fields.
- Generating a list of column headers based on a sample JSON record.
- Debugging data structures by verifying the presence of expected keys.

## Frequently asked questions

### What does 'own enumerable keys' mean?

It means the tool only lists properties defined directly on the object itself, ignoring properties inherited through the prototype chain.

### Can I process nested objects?

Yes, the tool will return the top-level keys of the provided JSON object.

### Is the output format always a JSON array?

Yes, the result is consistently returned as a JSON array of strings representing the keys.

### Does this tool modify my original data?

No, the tool only reads your input to extract the keys; your original data remains unchanged.

### What happens if the input is not valid JSON?

The tool requires a valid JSON object to function correctly; invalid syntax will result in an error.

## Related tools

- [Assign In Object](https://elysiatools.com/en/tools/assign-in-object): Assign own and inherited properties using lodash _.assignIn
- [Defaults Deep](https://elysiatools.com/en/tools/defaults-deep): Apply deep default values using lodash _.defaultsDeep
- [For In Object](https://elysiatools.com/en/tools/for-in-object): Iterate over object properties using lodash _.forIn
- [For Own](https://elysiatools.com/en/tools/for-own): Iterate over own object properties using lodash _.forOwn
- [Invert By](https://elysiatools.com/en/tools/invert-by): Invert keys grouped by values using lodash _.invertBy
- [Invert Object](https://elysiatools.com/en/tools/invert-object): Invert keys and values using lodash _.invert
- [Keys In List](https://elysiatools.com/en/tools/keys-in-list): List own and inherited keys using lodash _.keysIn
- [Count By](https://elysiatools.com/en/tools/count-by): Count items by a derived key using lodash _.countBy

## Samples

- [Grafana Advanced Application Samples](https://elysiatools.com/en/samples/grafana-samples): Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development
- [QR Code Samples](https://elysiatools.com/en/samples/qrcode-samples): Sample QR code images for testing QR code reading and generation tools
- [D3.js Data Visualization Samples](https://elysiatools.com/en/samples/d3js-data-visualization): Comprehensive D3.js data visualization examples including charts, maps, animations, and interactive visualizations
- [Rome JavaScript Toolchain Samples](https://elysiatools.com/en/samples/rome): Rome JavaScript toolchain examples including configuration, linting, formatting, bundling, and project management

## Related content

- [JSON Interchange and Format Translation Tools](https://elysiatools.com/en/hubs/json-convert): Compare JSON conversion tools for CSV, YAML, TOML, GraphQL, XML, Markdown, Excel, BSON, EDN, and related structured formats in one hub.
- [JSON Inspection, Diff, and Transformation Tools](https://elysiatools.com/en/hubs/json-utility): Compare JSON formatting, diffing, path inspection, schema validation, merging, transformation, and export tools in one hub for API and data workflows.
- [JSON Schema, Mock Data, and API Fixture Generators](https://elysiatools.com/en/hubs/json-generate): Curated tools for JSON schema generation, mock payload building, and API fixture preparation in one hub.
- [JSON Formatting, Diff, and Normalization Tools](https://elysiatools.com/en/hubs/json-format): Compare JSON formatting, diffing, log review, config comparison, and data-normalization tools in one hub for readable and reviewable JSON workflows.
