Has In Path
Check if a path exists using lodash _.hasIn
Check if a property path exists on an object, including inherited properties.
**Highlights:**
- Uses lodash `_.hasIn`
- Checks own and inherited properties
- Returns true or false
**Example:**
- Input: `{"user":{"name":"Ada"}}`
- Path: `user.name`
- Result: `true`
API Documentation
Request Endpoint
POST /en/api/tools/has-in-path
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| inputData | textarea | Yes | Enter a JSON object or array |
| path | text | Yes | Property path to check |
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-has-in-path": {
"name": "has-in-path",
"description": "Check if a path exists using lodash _.hasIn",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=has-in-path",
"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]