Assign In Object
Assign own and inherited properties using lodash _.assignIn
Assign own and inherited enumerable properties from sources to the target.
**Highlights:**
- Uses lodash `_.assignIn`
- Includes inherited enumerable properties
- Later sources override earlier ones
**Example:**
- Target: `{"a":1}`
- Source 1: `{"b":2}`
- Source 2: `{"a":3}`
- Result: `{"a":3,"b":2}`
API Documentation
Request Endpoint
POST /en/api/tools/assign-in-object
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| targetObject | textarea | Yes | Enter the target JSON object |
| source1 | textarea | Yes | First source object |
| source2 | textarea | No | Optional source object |
| source3 | textarea | No | Optional source 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-assign-in-object": {
"name": "assign-in-object",
"description": "Assign own and inherited properties using lodash _.assignIn",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=assign-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]