Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHDERUPTENFRES

Elysia Tools

Navigation

Data Processing

For In Object

· Last updated:2026-01-29

Iterate over object properties using lodash _.forIn

Details

What this tool helps you do

Iterate over own and inherited enumerable properties of an object.

Highlights:

  • Uses lodash _.forIn
  • Includes inherited enumerable properties
  • Returns an ordered list of key/value entries

Example:

  • Object: {"a":1,"b":2}
  • Result: [{"key":"a","value":1},{"key":"b","value":2}]

Execution

Run this tool

Fill in the form, run the tool, and review the result in one place.

Samples

Examples that match this tool

Related

Continue with connected tools and hubs

Written by the Elysia Tools team
Data Processing130
Lodash53

Tool usage guide

Learn when to use this tool, what it supports, and how real users apply it.

Key facts

Category
Data Processing
Input types
textarea
Output type
text
Sample coverage
4
API ready
Yes

Overview

The For In Object tool allows you to quickly iterate over the properties of a JSON object using the lodash _.forIn method, providing a clean, ordered list of key-value pairs.

When to use

  • When you need to extract and list all enumerable properties from a complex JSON object.
  • When you want to include both own and inherited properties in your data processing workflow.
  • When you need to transform a nested object into a flat, readable array of entries for further analysis.

How it works

  1. 1Paste your JSON object into the input area.
  2. 2The tool applies the lodash _.forIn function to traverse the object's properties.
  3. 3It automatically captures both own and inherited enumerable properties.
  4. 4The output is generated as an ordered list of key-value objects.

Use cases

  • Converting configuration objects into arrays for UI rendering.
  • Debugging object structures by listing all available keys and their associated values.
  • Preparing data for iteration-based logic in downstream applications.

Examples

1. Extracting Configuration Keys

Frontend Developer

Background

A developer has a configuration object containing various UI settings and needs to map them into a list for a settings dashboard.

Problem

The object is complex and needs to be converted into an array of key-value pairs to be rendered in a table.

How to use

Input the configuration object into the tool to generate the list.

{"theme": "dark", "fontSize": 14, "showSidebar": true}

Outcome

[{"key":"theme","value":"dark"},{"key":"fontSize","value":14},{"key":"showSidebar","value":true}]

2. Flattening Data for API Payload

Backend Engineer

Background

An engineer needs to transform a user profile object into a flat array to meet specific API requirements.

Problem

The API expects an array of entries rather than a single object.

How to use

Paste the user profile object into the tool to get the formatted array.

FAQ

What does the For In Object tool do?

It iterates over all enumerable properties of a provided JSON object, including inherited ones, and returns them as an ordered list.

Does it include inherited properties?

Yes, the tool uses lodash _.forIn, which iterates over both own and inherited enumerable properties.

What is the output format?

The output is returned as an array of objects, where each object contains a 'key' and a 'value' field.

Is this tool limited to own properties only?

No, unlike some native methods, this tool specifically includes inherited enumerable properties.

Can I process large JSON objects?

Yes, the tool efficiently handles JSON objects by converting them into a structured list format.

Home
Tools3212
Samples593
Visualizations471
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web193

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact
Media

QR Code Samples

Sample QR code images for testing QR code reading and generation tools

Monitoring

Grafana Advanced Application Samples

Comprehensive Grafana samples covering advanced dashboard design, alerting configurations, data source integrations, and plugin development

Observability

Distributed Tracing Samples

Comprehensive distributed tracing examples using Jaeger, OpenTelemetry, and other modern observability tools for microservices architecture

DevOps

ELK Stack Log Analysis Samples

Comprehensive ELK Stack (Elasticsearch, Logstash, Kibana) samples for log aggregation, processing, and visualization in distributed systems

Data Processing

Assign In Object

Assign own and inherited properties using lodash _.assignIn

Data Processing

Defaults Deep

Apply deep default values using lodash _.defaultsDeep

Data Processing

For Own

Iterate over own object properties using lodash _.forOwn

Data Processing

Keys In List

List own and inherited keys using lodash _.keysIn

{"id": 101, "username": "jdoe", "active": true}

Outcome

[{"key":"id","value":101},{"key":"username","value":"jdoe"},{"key":"active","value":true}]