For In Object
Iterate over object properties using lodash _.forIn
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}]`
API Documentation
Request Endpoint
POST /en/api/tools/for-in-object
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| objectInput | textarea | Yes | Enter a JSON object |
Response Format
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
Text:
Text
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-for-in-object": {
"name": "for-in-object",
"description": "Iterate over object properties using lodash _.forIn",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=for-in-object",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
If you encounter any issues, please contact us at [email protected]