# For Own

Iterate over own object properties using lodash _.forOwn

> Canonical page: https://elysiatools.com/en/tools/for-own

- **Category:** Data Processing

- **Keywords:** forOwn, object, lodash, iterate, entries

## Overview

Iterate over own enumerable properties of an object.

**Highlights:**
- Uses lodash `_.forOwn`
- Own enumerable properties only
- Returns an ordered list of key/value entries

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

## Inputs

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

## When to use

- When you need to extract and list all direct properties of a JSON object for easier inspection.
- When you want to filter out inherited prototype properties and focus only on the object's own data.
- When you need to convert a raw JSON object into a structured array format for further processing or display.

## How it works

- Paste your JSON object into the input area.
- The tool applies the lodash _.forOwn function to the input.
- It isolates the object's own enumerable properties.
- The output is generated as an ordered list of key and value entries.

## Use cases

- Converting configuration objects into lists for UI rendering.
- Debugging object states by flattening them into readable key-value pairs.
- Preparing object data for mapping or transformation tasks in data pipelines.

## Frequently asked questions

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

It means the tool only includes properties defined directly on the object itself, excluding any properties inherited through the prototype chain.

### Does this tool support nested objects?

The tool processes the top-level object provided. If a value within the object is another object, it will be returned as that value.

### Is the output order guaranteed?

Yes, the tool returns an ordered list of key-value entries based on the iteration of the object's own properties.

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

The tool requires a valid JSON object to function correctly; invalid syntax will prevent the iteration process.

### Can I use this for large JSON files?

This tool is designed for standard JSON objects; for extremely large datasets, ensure your input remains within the character limits of the text area.

## 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
- [Keys In List](https://elysiatools.com/en/tools/keys-in-list): List own and inherited keys using lodash _.keysIn
- [Keys List](https://elysiatools.com/en/tools/keys-list): List own enumerable keys using lodash _.keys
- [Count By](https://elysiatools.com/en/tools/count-by): Count items by a derived key using lodash _.countBy
- [Find Key](https://elysiatools.com/en/tools/find-key): Find the first matching key using lodash _.findKey
- [Get Path](https://elysiatools.com/en/tools/get-path): Get a value at a path using lodash _.get

## Samples

- [QR Code Samples](https://elysiatools.com/en/samples/qrcode-samples): Sample QR code images for testing QR code reading and generation tools
- [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
- [Distributed Tracing Samples](https://elysiatools.com/en/samples/distributed-tracing-samples): Comprehensive distributed tracing examples using Jaeger, OpenTelemetry, and other modern observability tools for microservices architecture
- [ELK Stack Log Analysis Samples](https://elysiatools.com/en/samples/elk-stack-samples): Comprehensive ELK Stack (Elasticsearch, Logstash, Kibana) samples for log aggregation, processing, and visualization in distributed systems

## 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.
